mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
ext/jpeg/: Fix leaks.
Original commit message from CVS: * ext/jpeg/gstsmokedec.c: (gst_smokedec_chain): * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_chain): Fix leaks.
This commit is contained in:
parent
87afc118d1
commit
59ec603210
4 changed files with 16 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-01-04 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/jpeg/gstsmokedec.c: (gst_smokedec_chain):
|
||||
* ext/jpeg/gstsmokeenc.c: (gst_smokeenc_chain):
|
||||
Fix leaks.
|
||||
|
||||
2006-01-02 Alessandro Decina <alessandro at nnva dot org>
|
||||
|
||||
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit d1911d4b3d6267f9cd9dfb68fcef2afe4d098092
|
||||
Subproject commit 5f10c872cafb3eb8058d63e438cae029ed9e8d73
|
|
@ -220,7 +220,9 @@ gst_smokedec_chain (GstPad * pad, GstData * _data)
|
|||
|
||||
outbuf = gst_buffer_new ();
|
||||
outsize = GST_BUFFER_SIZE (outbuf) = width * height + width * height / 2;
|
||||
outdata = GST_BUFFER_DATA (outbuf) = g_malloc (outsize);
|
||||
outdata = g_malloc (outsize);
|
||||
GST_BUFFER_DATA (outbuf) = outdata;
|
||||
GST_BUFFER_MALLOCDATA (outbuf) = outdata;
|
||||
|
||||
GST_BUFFER_DURATION (outbuf) = GST_SECOND * fps_denom / fps_num;
|
||||
GST_BUFFER_OFFSET (outbuf) = GST_BUFFER_OFFSET (buf);
|
||||
|
|
|
@ -308,7 +308,9 @@ gst_smokeenc_chain (GstPad * pad, GstBuffer * buf)
|
|||
if (smokeenc->need_header) {
|
||||
outbuf = gst_buffer_new ();
|
||||
outsize = 256;
|
||||
outdata = GST_BUFFER_DATA (outbuf) = g_malloc (outsize);
|
||||
outdata = g_malloc (outsize);
|
||||
GST_BUFFER_DATA (outbuf) = outdata;
|
||||
GST_BUFFER_MALLOCDATA (outbuf) = outdata;
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buf);
|
||||
GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (buf);
|
||||
|
||||
|
@ -323,7 +325,9 @@ gst_smokeenc_chain (GstPad * pad, GstBuffer * buf)
|
|||
|
||||
outbuf = gst_buffer_new ();
|
||||
outsize = smokeenc->width * smokeenc->height * 3;
|
||||
outdata = GST_BUFFER_DATA (outbuf) = g_malloc (outsize);
|
||||
outdata = g_malloc (outsize);
|
||||
GST_BUFFER_DATA (outbuf) = outdata;
|
||||
GST_BUFFER_MALLOCDATA (outbuf) = outdata;
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buf);
|
||||
GST_BUFFER_DURATION (outbuf) =
|
||||
smokeenc->fps_denom * GST_SECOND / smokeenc->fps_num;
|
||||
|
|
Loading…
Reference in a new issue