Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranick committed Feb 6, 2019
1 parent 964242a commit f37ba6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/net/curl/CURLBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ namespace lime {
ValuePointer* writeCallback = writeCallbacks[easy_handle];

Bytes* bytes = writeBytes[easy_handle];
if (bytes->length > position) bytes->Resize (position);
if (bytes->length < position) bytes->Resize (position);
memcpy ((char*)bytes->b, buffer, position);
// free (buffer);
// writeBuffers[easy_handle] = NULL;
Expand Down Expand Up @@ -1051,7 +1051,7 @@ namespace lime {
curlObjects[curl] = handle;

writeBuffers[handle] = NULL;
writeBufferPosition[handle] = false;
writeBufferPosition[handle] = 0;
writeBufferSize[handle] = 0;

curl_gc_mutex.Unlock ();
Expand Down

0 comments on commit f37ba6f

Please sign in to comment.