mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +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_query_set_caps_result (query, result);
|
||||
gst_caps_unref (result);
|
||||
ret = TRUE;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue