Commit d3eccdb0 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

demux: adaptative: fix memory leak

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5fce6b1a
......@@ -40,14 +40,12 @@ BasePeriod::BasePeriod(AbstractPlaylist *playlist_) :
{
duration.Set(0);
startTime.Set(0);
baseUrl.Set(NULL);
playlist = playlist_;
}
BasePeriod::~BasePeriod ()
{
vlc_delete_all( adaptationSets );
delete baseUrl.Get();
childs.clear();
}
......
......@@ -62,6 +62,7 @@ SegmentInformation::~SegmentInformation()
delete segmentBase;
delete segmentList;
delete mediaSegmentTemplate;
delete baseUrl.Get();
}
AbstractPlaylist * SegmentInformation::getPlaylist() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment