From: Ignacio Casal Quinteiro Date: Wed, 26 Oct 2022 09:47:43 +0000 (+0200) Subject: avfdeviceprovider: do not leak the properties X-Git-Tag: 1.22.0~689 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d44eb4b2fa16cfa3bbb44e49507aded05ceb3a2b;p=platform%2Fupstream%2Fgstreamer.git avfdeviceprovider: do not leak the properties Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m b/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m index 12ae852..a6279df 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m +++ b/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m @@ -76,11 +76,16 @@ gst_av_capture_device_get_props (AVCaptureDevice *device) "avf.has_torch", G_TYPE_BOOLEAN, [device hasTorch], NULL); + g_free (unique_id); + g_free (model_id); + #if !HAVE_IOS char *manufacturer = g_strdup ([[device manufacturer] UTF8String]); gst_structure_set (props, "avf.manufacturer", G_TYPE_STRING, manufacturer, NULL); + + g_free (manufacturer); #endif return props;