mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
tests: camerabin: fix caps leak in test
The gst_query_set_caps_result doesn't take ownership of caps
This commit is contained in:
parent
c5ef1bee73
commit
f1b99f04dc
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ gst_test_camera_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||||
gst_caps_unref (tmp);
|
gst_caps_unref (tmp);
|
||||||
}
|
}
|
||||||
gst_query_set_caps_result (query, result);
|
gst_query_set_caps_result (query, result);
|
||||||
|
gst_caps_unref (result);
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue