videomixer: Fix leak
authorEdward Hervey <edward@collabora.com>
Tue, 25 Sep 2012 12:18:35 +0000 (14:18 +0200)
committerEdward Hervey <edward@collabora.com>
Tue, 25 Sep 2012 12:18:35 +0000 (14:18 +0200)
gst/videomixer/videomixer2.c

index 98a3312..95c8f21 100644 (file)
@@ -270,6 +270,7 @@ gst_videomixer2_update_src_caps (GstVideoMixer2 * mix)
       gst_structure_get_fraction (s, "fraction", &info.fps_n, &info.fps_d);
     }
 
+    gst_caps_unref (caps);
     caps = gst_video_info_to_caps (&info);
 
     GST_VIDEO_MIXER2_UNLOCK (mix);