From 01fd3a13964e92e563e863f3d4e79619502229ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 29 Jun 2014 21:01:39 +0200 Subject: [PATCH] uvch264src: Free property strings when disposing the instance --- sys/uvch264/gstuvch264_src.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/uvch264/gstuvch264_src.c b/sys/uvch264/gstuvch264_src.c index 6c6047d..af9da69 100644 --- a/sys/uvch264/gstuvch264_src.c +++ b/sys/uvch264/gstuvch264_src.c @@ -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); } -- 2.7.4