From 9438795f435dc1a60b51866c8049232af837a1be Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Wed, 13 Jun 2012 13:59:00 +0100 Subject: [PATCH] Fix some obvious memory leaks. --- src/epg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/epg.c b/src/epg.c index f4322090..d459702e 100644 --- a/src/epg.c +++ b/src/epg.c @@ -424,6 +424,7 @@ static void _epg_brand_destroy ( epg_object_t *eo ) _epg_object_destroy(eo, &epg_brands); if (eb->title) free(eb->title); if (eb->summary) free(eb->summary); + if (eb->image) free(eb->image); free(eb); } @@ -581,6 +582,7 @@ static void _epg_season_destroy ( epg_object_t *eo ) es->brand->_.putref((epg_object_t*)es->brand); } if (es->summary) free(es->summary); + if (es->image) free(es->image); free(es); } @@ -746,6 +748,8 @@ static void _epg_episode_destroy ( epg_object_t *eo ) if (ee->subtitle) free(ee->subtitle); if (ee->summary) free(ee->summary); if (ee->description) free(ee->description); + if (ee->genre) free(ee->genre); + if (ee->image) free(ee->image); free(ee); }