mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Oops, some pretty bad memleaks
Original commit message from CVS: Oops, some pretty bad memleaks
This commit is contained in:
parent
199e7f14f2
commit
ebbae798e3
1 changed files with 2 additions and 0 deletions
|
@ -482,6 +482,7 @@ gst_ffmpegenc_chain_audio (GstPad *pad,
|
||||||
g_warning("ffenc_%s: failed to encode buffer",
|
g_warning("ffenc_%s: failed to encode buffer",
|
||||||
oclass->in_plugin->name);
|
oclass->in_plugin->name);
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
gst_buffer_unref (subbuf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -491,6 +492,7 @@ gst_ffmpegenc_chain_audio (GstPad *pad,
|
||||||
gst_pad_push (ffmpegenc->srcpad, GST_DATA (outbuf));
|
gst_pad_push (ffmpegenc->srcpad, GST_DATA (outbuf));
|
||||||
|
|
||||||
in_size -= frame_size;
|
in_size -= frame_size;
|
||||||
|
gst_buffer_unref (subbuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue