close #333784 unref the result of gst_pad_get_parent() by: Christophe Fergeau.
[platform/upstream/gstreamer.git] / ext / jpeg / gstsmokedec.c
index 88fa726..72ed8fe 100644 (file)
@@ -183,7 +183,8 @@ gst_smokedec_chain (GstPad * pad, GstBuffer * buf)
     if (smokeret != SMOKECODEC_OK)
       goto header_error;
 
-    return GST_FLOW_OK;
+    ret = GST_FLOW_OK;
+    goto done;
   }
 
   /* now handle data packets */