return -1;
}
+
+ priv->channel_info = current;
}
channel_list = tv_channel_get_list();
return;
}
+ prev = NULL;
+ next = NULL;
if (!_get_next_channel(current, &prev, &next) ||
!prev || !next) {
_ERR("failed to get next channel");
- return;
+ goto err;
}
elm_box_clear(box);
util_draw_channel_info(layout, prev);
elm_box_pack_end(box, layout);
+err:
tv_channel_del_info(prev);
tv_channel_del_info(next);
}
return;
}
+
+ priv->channel_info = current;
}
if (!_get_next_channel(current, &prev, &next)) {
(TvServiceEpgCallback) _tv_epg_event_cb, request);
if (r != TVS_ERROR_OK) {
_ERR("failed to get epg get current program : %d", service_id);
- free(request);
return -1;
}