close #333784 unref the result of gst_pad_get_parent() by: Christophe Fergeau.
[platform/upstream/gstreamer.git] / ext / cairo / gsttextoverlay.c
index 2fd8dc8..34137ad 100644 (file)
@@ -556,6 +556,8 @@ gst_text_overlay_setcaps (GstPad * pad, GstCaps * caps)
   overlay->fps_n = gst_value_get_fraction_numerator (fps);
   overlay->fps_d = gst_value_get_fraction_denominator (fps);
 
+  gst_object_unref (overlay);
+
   return ret;
 }