From: Tim-Philipp Müller Date: Sat, 20 Oct 2012 10:37:33 +0000 (+0100) Subject: videodecoder: don't leak message strings when error is not fatal X-Git-Tag: 1.19.3~511^2~5826 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c0c3eb967ac1dc6d8573e1681a05133fab25767;p=platform%2Fupstream%2Fgstreamer.git videodecoder: don't leak message strings when error is not fatal --- diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 9e830ff..a62c9f8 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -3174,6 +3174,8 @@ _gst_video_decoder_error (GstVideoDecoder * dec, gint weight, domain, code, txt, dbg, file, function, line); return GST_FLOW_ERROR; } else { + g_free (txt); + g_free (dbg); return GST_FLOW_OK; } }