Commit d3eccdb0 authored by ssbssa's avatar ssbssa 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_) : ...@@ -40,14 +40,12 @@ BasePeriod::BasePeriod(AbstractPlaylist *playlist_) :
{ {
duration.Set(0); duration.Set(0);
startTime.Set(0); startTime.Set(0);
baseUrl.Set(NULL);
playlist = playlist_; playlist = playlist_;
} }
BasePeriod::~BasePeriod () BasePeriod::~BasePeriod ()
{ {
vlc_delete_all( adaptationSets ); vlc_delete_all( adaptationSets );
delete baseUrl.Get();
childs.clear(); childs.clear();
} }
......
...@@ -62,6 +62,7 @@ SegmentInformation::~SegmentInformation() ...@@ -62,6 +62,7 @@ SegmentInformation::~SegmentInformation()
delete segmentBase; delete segmentBase;
delete segmentList; delete segmentList;
delete mediaSegmentTemplate; delete mediaSegmentTemplate;
delete baseUrl.Get();
} }
AbstractPlaylist * SegmentInformation::getPlaylist() const 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