projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff5371
)
Fix a memory leak with raw inputs.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Fri, 27 May 2016 08:13:26 +0000
(10:13 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Fri, 27 May 2016 08:13:26 +0000
(10:13 +0200)
httpinput.cpp
patch
|
blob
|
history
diff --git
a/httpinput.cpp
b/httpinput.cpp
index
9dcaeaa
..
78e73a1
100644
(file)
--- a/
httpinput.cpp
+++ b/
httpinput.cpp
@@
-495,7
+495,6
@@
void HTTPInput::do_work()
void HTTPInput::process_data(char *ptr, size_t bytes)
{
- pending_data.insert(pending_data.end(), ptr, ptr + bytes);
{
MutexLock mutex(&stats_mutex);
stats.bytes_received += bytes;
@@
-509,6
+508,7
@@
void HTTPInput::process_data(char *ptr, size_t bytes)
}
assert(encoding == Input::INPUT_ENCODING_METACUBE);
+ pending_data.insert(pending_data.end(), ptr, ptr + bytes);
for ( ;; ) {
// If we don't have enough data (yet) for even the Metacube header, just return.