]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugin-ducati.git/commitdiff
ducatividdec: fix event leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 27 Jun 2012 11:28:08 +0000 (11:28 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 27 Jun 2012 11:28:08 +0000 (11:28 +0000)
src/gstducatividdec.c

index 198b69ecb31382915f9fc9fdf106db8fe38ed46f..4d43cd4946a97ba84ea5c8dc0e5b291f20d598dd 100644 (file)
@@ -1093,6 +1093,7 @@ gst_ducati_viddec_event (GstPad * pad, GstEvent * event)
     case GST_EVENT_FLUSH_STOP:
       if (!gst_ducati_viddec_codec_flush (self, FALSE)) {
         GST_ERROR_OBJECT (self, "could not flush");
     case GST_EVENT_FLUSH_STOP:
       if (!gst_ducati_viddec_codec_flush (self, FALSE)) {
         GST_ERROR_OBJECT (self, "could not flush");
+        gst_event_unref (event);
         ret = FALSE;
       }
       gst_segment_init (&self->segment, GST_FORMAT_UNDEFINED);
         ret = FALSE;
       }
       gst_segment_init (&self->segment, GST_FORMAT_UNDEFINED);