tests: camerabin: fix caps leak in test
authorThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 20:35:32 +0000 (17:35 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 20:35:32 +0000 (17:35 -0300)
The gst_query_set_caps_result doesn't take ownership of caps

tests/check/elements/camerabin.c

index 5816aaf..0061606 100644 (file)
@@ -134,6 +134,7 @@ gst_test_camera_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
           gst_caps_unref (tmp);
         }
         gst_query_set_caps_result (query, result);
+        gst_caps_unref (result);
         ret = TRUE;
       }
       break;