diff --git a/Source/GSEasyHandle.m b/Source/GSEasyHandle.m index f51d2c9bf..576a41205 100644 --- a/Source/GSEasyHandle.m +++ b/Source/GSEasyHandle.m @@ -329,7 +329,7 @@ - (void) setDebugOutput: (BOOL)flag { if (flag) { - handleEasyCode(curl_easy_setopt(_rawHandle, CURLOPT_DEBUGDATA, self)); + handleEasyCode(curl_easy_setopt(_rawHandle, CURLOPT_DEBUGDATA, task)); handleEasyCode(curl_easy_setopt(_rawHandle, CURLOPT_DEBUGFUNCTION, curl_debug_function)); }