videodecoder: don't leak message strings when error is not fatal
authorTim-Philipp Müller <tim@centricular.net>
Sat, 20 Oct 2012 10:37:33 +0000 (11:37 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 20 Oct 2012 10:37:33 +0000 (11:37 +0100)
gst-libs/gst/video/gstvideodecoder.c

index 9e830ff..a62c9f8 100644 (file)
@@ -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;
   }
 }