Commit e59564c5 authored by Michael Smith's avatar Michael Smith
Browse files

Use _ogg_free(), not ogg_packet_clear(), to prevent cross-DLL windows memory

management issues

svn path=/trunk/vorbis-tools/; revision=8263
parent e9b34d50
...@@ -483,7 +483,10 @@ int vcedit_write(vcedit_state *state, void *out) ...@@ -483,7 +483,10 @@ int vcedit_write(vcedit_state *state, void *out)
cleanup: cleanup:
ogg_stream_clear(&streamout); ogg_stream_clear(&streamout);
/* We don't ogg_packet_clear() this, because the memory was allocated in
_commentheader_out(), so we mirror that here */
free(state->mainbuf); free(state->mainbuf);
free(state->bookbuf); free(state->bookbuf);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment