diff options
author | jinwoo.shin <jw0227.shin@samsung.com> | 2015-10-08 17:17:28 +0900 |
---|---|---|
committer | jinwoo.shin <jw0227.shin@samsung.com> | 2015-10-08 17:17:28 +0900 |
commit | 85791c4998303672786597853b4e9bfc0de02064 (patch) | |
tree | 176ee5030f0e32a4fc3345b81105d30f31ebbeb4 | |
parent | 3a34a2ed9a2eea58d113a11009ca1db985bad770 (diff) | |
download | air_livetv-85791c4998303672786597853b4e9bfc0de02064.tar.gz air_livetv-85791c4998303672786597853b4e9bfc0de02064.tar.bz2 air_livetv-85791c4998303672786597853b4e9bfc0de02064.zip |
Fix memory leak issue
Change-Id: I191a597cfe2da75d175ef7a9762e1f630e13e0ee
Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
-rw-r--r-- | src/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -351,12 +351,16 @@ void util_draw_channel_info(Evas_Object *obj, r = tv_epg_get_cache_program(channel_info->service_id, prog_req); + if (r < 0) + free(prog_req); if (channel_info->service_id == current_service) { prog_req = calloc(1, sizeof(*prog_req)); prog_req->tv_program_cb = _tv_program_cb; prog_req->user_data = obj; r = tv_epg_get_program(channel_info->service_id, prog_req); + if (r < 0) + free(prog_req); } if (r < 0 && viewmgr_get_view_state(VIEW_CHANNELINFO) == |