close #333784 unref the result of gst_pad_get_parent() by: Christophe Fergeau.
[platform/upstream/gstreamer.git] / ext / jpeg / gstsmokeenc.c
index 392f0a8..cd499f8 100644 (file)
@@ -228,6 +228,8 @@ gst_smokeenc_getcaps (GstPad * pad)
     }
   }
 
+  gst_object_unref (smokeenc);
+
   return caps;
 }
 
@@ -270,6 +272,8 @@ gst_smokeenc_setcaps (GstPad * pad, GstCaps * caps)
     gst_smokeenc_resync (smokeenc);
   }
 
+  gst_object_unref (smokeenc);
+
   return ret;
 }