From: Jeongmo Yang Date: Mon, 3 Feb 2020 07:04:46 +0000 (+0900) Subject: Fix coverity issue - Resource leak X-Git-Tag: submit/tizen/20200211.075339^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0e15b6c1cbf6b315d5d0de97a7996f9c74733dd;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git Fix coverity issue - Resource leak [Version] 0.10.194 [Profile] Common [Issue Type] coverity Change-Id: Ic5414715f4e128a73351c14c473d31a9c76b2c76 Signed-off-by: Jeongmo Yang --- diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index a578487..df0fb2d 100644 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,6 +1,6 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.193 +Version: 0.10.194 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_camcorder_util.c b/src/mm_camcorder_util.c index ba98936..c7c7093 100644 --- a/src/mm_camcorder_util.c +++ b/src/mm_camcorder_util.c @@ -917,7 +917,6 @@ int _mmcamcorder_send_sound_play_message(GDBusConnection *conn, _MMCamcorderGDbu } params = g_variant_new("(sss)", sample_name, stream_role, volume_gain); - result = g_variant_new("(i)", get_value); ret = __gdbus_method_call_sync(conn, "org.pulseaudio.Server", "/org/pulseaudio/SoundPlayer", "org.pulseaudio.SoundPlayer", @@ -977,7 +976,6 @@ void _mmcamcorder_request_dpm_popup(GDBusConnection *conn, const char *restricte } params = g_variant_new("(s)", restricted_policy); - result = g_variant_new("(b)", get_value); ret = __gdbus_method_call_sync(conn, "org.tizen.DevicePolicyManager",