summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 979231a..4494aee 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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) ==