uvch264src: Free property strings when disposing the instance
authorSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 19:01:39 +0000 (21:01 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 19:01:39 +0000 (21:01 +0200)
sys/uvch264/gstuvch264_src.c

index 6c6047d..af9da69 100644 (file)
@@ -587,6 +587,12 @@ gst_uvc_h264_src_dispose (GObject * object)
   if (self->usb_ctx)
     libusb_exit (self->usb_ctx);
   self->usb_ctx = NULL;
+  g_free (self->jpeg_decoder_name);
+  self->jpeg_decoder_name = NULL;
+  g_free (self->colorspace_name);
+  self->colorspace_name = NULL;
+  g_free (self->device);
+  self->device = NULL;
 
   G_OBJECT_CLASS (parent_class)->dispose (object);
 }