diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-23 15:14:04 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-23 15:20:37 +0200 |
commit | 81134554dbbb4493631b571e2364d78ebb8598da (patch) | |
tree | 2dca344c93db8623cf4d9e25d30fc396277c6d12 /ext/teletextdec | |
parent | d20de1087cf8dfbfc8e00d04df8db53d312a6dc7 (diff) | |
download | gstreamer-plugins-bad-81134554dbbb4493631b571e2364d78ebb8598da.tar.gz |
teletextdec: Fix buffer data leak
Diffstat (limited to 'ext/teletextdec')
-rw-r--r-- | ext/teletextdec/gstteletextdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index 3d590eee4..d7d5bffa7 100644 --- a/ext/teletextdec/gstteletextdec.c +++ b/ext/teletextdec/gstteletextdec.c @@ -1054,9 +1054,8 @@ gst_teletextdec_push_preroll_buffer (GstTeletextDec * teletext) goto beach; } - buf = gst_buffer_new_and_alloc (1); - GST_BUFFER_DATA (buf) = GST_BUFFER_MALLOCDATA (buf) = - (guint8 *) g_strdup (""); + buf = gst_buffer_new (); + GST_BUFFER_DATA (buf)[0] = 0; gst_buffer_set_caps (buf, out_caps); ret = gst_pad_push (teletext->srcpad, buf); if (ret != GST_FLOW_OK) |