From: Adam Sutton Date: Wed, 13 Jun 2012 12:59:00 +0000 (+0100) Subject: Fix some obvious memory leaks. X-Git-Tag: 3.3~219^2~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b22eb3733c2f61b83ce31872d18ee1aef2b9ebd3;p=thirdparty%2Ftvheadend.git Fix some obvious memory leaks. --- diff --git a/src/epg.c b/src/epg.c index f43220909..d459702ea 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); }