From 6efc1eb9137eafcda41730d1255eb3dd160cf3b2 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Thu, 10 May 2012 15:29:16 -0400 Subject: [PATCH] Avoid critical error unreffing structure --- sys/niimaq/gstniimaq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");