Fix NULL pointer dereference 41/228241/1
authorJaechul Lee <jcsing.lee@samsung.com>
Thu, 19 Mar 2020 07:02:31 +0000 (16:02 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Fri, 20 Mar 2020 02:01:06 +0000 (11:01 +0900)
g_variant_unref is called with a NULL argument.

[Version] 0.12.65
[Issue Type] Bug

Change-Id: I2f65a076f2c54a35ffcbe756b846a2f8c14edb21
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
mm_sound_proxy.c
packaging/libmm-sound.spec

index 5b4b767..2667252 100644 (file)
@@ -949,7 +949,6 @@ int mm_sound_proxy_play_sound_with_stream_info(const char* filename, int repeat,
 
        if ((ret = mm_sound_dbus_method_call_to(AUDIO_PROVIDER_SOUND_SERVER, AUDIO_METHOD_PLAY_FILE_START_WITH_STREAM_INFO, params, &result)) != MM_ERROR_NONE) {
                debug_error("dbus play file failed");
-               g_variant_unref(result);
                return ret;
        }
 
index ab11251..9c5a536 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.12.64
+Version:    0.12.65
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0