videodecoder: don't leak message strings when error is not fatal

This commit is contained in:
Tim-Philipp Müller 2012-10-20 11:37:33 +01:00
parent 0ea6526770
commit 6c0c3eb967

View 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;
}
}