Free device list from first node 69/156269/1
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 16 Oct 2017 01:59:02 +0000 (10:59 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 18 Oct 2017 01:19:04 +0000 (01:19 +0000)
[Version] 0.11.27
[Issue Type] Memory leak

Change-Id: Ibc10c0f2f7619bd92d927c546f9922b456adfa71
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
mm_sound_device.c
packaging/libmm-sound.spec

index 305f03b51b5ef38beb749f757ca1e42ca1d5a297..9dcde4ecae49eb54297684a9b6ee29b79335b240 100644 (file)
@@ -105,7 +105,7 @@ static int __free_device_list(mm_sound_device_list_t *device_list_t)
                return MM_ERROR_INVALID_ARGUMENT;
 
        debug_log("free device list %p", device_list_t);
-       g_list_free_full(device_list_t->list, g_free);
+       g_list_free_full(g_list_first(device_list_t->list), g_free);
        g_free(device_list_t);
 
        return MM_ERROR_NONE;
index ab337a7fbf8f84ea9ced3c469666fa70d79d2f9f..c4c993ca19513508d79a535eb5db5610a615a759 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.11.26
+Version:    0.11.27
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0