diff --git a/sys/niimaq/gstniimaq.c b/sys/niimaq/gstniimaq.c index 4a335b0..d1b552c 100644 --- a/sys/niimaq/gstniimaq.c +++ b/sys/niimaq/gstniimaq.c @@ -991,7 +991,7 @@ gst_niimaqsrc_get_cam_caps (GstNiImaqSrc * niimaqsrc) gst_niimaqsrc_set_caps_color (gs, 16, 16); gst_caps_append_structure (gcaps, gst_structure_copy (gs)); } - gst_object_unref (gs); + gst_structure_free (gs); GST_DEBUG_OBJECT (gcaps, "are the camera caps");