tests: camerabin2: Fix message leak in tests

This commit is contained in:
Thiago Santos 2011-12-28 16:57:25 -03:00
parent 9de92cf9dc
commit 2df5760a79

View file

@ -612,6 +612,8 @@ wait_for_element_message (GstElement * camera, const gchar * name,
if (gst_structure_has_name (st, name))
break;
else
gst_message_unref (msg);
} else {
gst_message_unref (msg);
msg = NULL;