Changeset 534 for trunk/zoo-project/zoo-kernel/ulinet.c
- Timestamp:
- Nov 10, 2014, 12:44:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/ulinet.c
r509 r534 180 180 fclose(handle.file); 181 181 unlink(handle.filename); 182 handle.mimeType = NULL;183 182 } 184 183 else{ 185 184 handle.pabyData = NULL; 186 handle.mimeType = NULL;187 185 handle.nDataAlloc = handle.nDataLen = 0; 188 186 } … … 192 190 } 193 191 free(handle.mimeType); 192 handle.mimeType = NULL; 194 193 } 195 194 if(handle0->handle) … … 298 297 }while(still_running); 299 298 for(i=0;i<hInternet->nb;i++){ 300 curl_easy_getinfo(hInternet->ihandle[i].handle,CURLINFO_CONTENT_TYPE,&hInternet->ihandle[i].mimeType); 299 char *tmp; 300 curl_easy_getinfo(hInternet->ihandle[i].handle,CURLINFO_CONTENT_TYPE,&tmp); 301 hInternet->ihandle[i].mimeType=strdup(tmp); 301 302 curl_multi_remove_handle(hInternet->handle, hInternet->ihandle[i].handle); 302 303 curl_easy_cleanup(hInternet->ihandle[i].handle);
Note: See TracChangeset
for help on using the changeset viewer.