diff options
-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) == |