mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Fix missing free() calls for miniz allocations
This commit is contained in:
@@ -105,6 +105,7 @@ bool ExtractAndRemoveManifest(const rdcstr &apk, bytebuf &manifest)
|
||||
RDCLOG("Got manifest of %zu bytes", sz);
|
||||
|
||||
manifest = bytebuf(buf, sz);
|
||||
free(buf);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1000,6 +1000,8 @@ static bool ZIP2Buffers(const rdcstr &filename, ThumbTypeAndData &thumb, ThumbTy
|
||||
}
|
||||
}
|
||||
|
||||
free(buf);
|
||||
|
||||
if(progress)
|
||||
progress(BufferProgress(float(i) / float(numfiles)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user