Fix memory issue - Need to be freed device list 53/98053/1
authorWootak Jung <wootak.jung@samsung.com>
Wed, 16 Nov 2016 04:56:33 +0000 (13:56 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 16 Nov 2016 04:56:33 +0000 (13:56 +0900)
Change-Id: Ib735237740845b8d08feb88a3911ccc0169f7a3e

module/src/callmgr-audio.c
packaging/call-manager.spec

index a8a6ccb..ff5e590 100644 (file)
@@ -223,6 +223,7 @@ int _callmgr_audio_init(callmgr_audio_handle_h *audio_handle, audio_event_cb cb_
                }
        }
        dbg("Current device list [0x%x]", handle->current_device_list);
+       sound_manager_free_device_list(device_list);
 
        /* Set device connected cb */
        ret = sound_manager_set_device_connected_cb(SOUND_DEVICE_ALL_MASK, __callmgr_audio_available_route_changed_cb, handle);
@@ -406,9 +407,11 @@ static int __callmgr_audio_get_sound_device(sound_device_type_e device_type, sou
                        }
                } else {
                        err("sound_manager_get_next_device() failed with err[%d]", ret);
+                       sound_manager_free_device_list(device_list);
                        return -1;
                }
        }
+       sound_manager_free_device_list(device_list);
 
        *sound_device = device;
        return 0;
index 183aadb..1c413c2 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 1
-%define patchlevel 82
+%define patchlevel 83
 %define ext_feature 0
 
 Name:           call-manager