Skip to content

Commit

Permalink
fixed: ticket xbmc#10896 - memory leak watching videos with libass su…
Browse files Browse the repository at this point in the history
…btitles. thanks to evetsso!

(cherry picked from commit 99b4db4d04c9ae35b124e268a29d8c378d94ba10)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@35636 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
spiff_ committed Dec 13, 2010
1 parent 920da6b commit c9d8ff6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/DynamicDll.h
Expand Up @@ -485,7 +485,7 @@ class DllDynamic
virtual ~DllDynamic();
virtual bool Load();
virtual void Unload();
bool IsLoaded() { return m_dll!=NULL; }
virtual bool IsLoaded() { return m_dll!=NULL; }
bool CanLoad();
bool EnableDelayedUnload(bool bOnOff);
bool SetFile(const CStdString& strDllName);
Expand Down
2 changes: 2 additions & 0 deletions xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitlesLibass.cpp
Expand Up @@ -91,6 +91,8 @@ CDVDSubtitlesLibass::~CDVDSubtitlesLibass()
{
if(m_dll.IsLoaded())
{
if(m_track)
m_dll.ass_free_track(m_track);
m_dll.ass_renderer_done(m_renderer);
m_dll.ass_library_done(m_library);
m_dll.Unload();
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/dvdplayer/DVDSubtitles/DllLibass.h
Expand Up @@ -126,6 +126,7 @@ class DllLibass : public DllDynamic, DllLibassInterface
return true;
}
virtual void Unload() {}
virtual bool IsLoaded() { return true; }
};

#else
Expand Down

0 comments on commit c9d8ff6

Please sign in to comment.