[vlc-devel] commit: skins2: release all ressources created in constructor. ( Erwan Tulou )

git version control git at videolan.org
Fri Sep 18 21:14:05 CEST 2009


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Wed Sep  9 19:20:57 2009 +0200| [01da2be7856d3dd4d3682af623e180caacecfd89] | committer: Erwan Tulou 

skins2: release all ressources created in constructor.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01da2be7856d3dd4d3682af623e180caacecfd89
---

 modules/gui/skins2/src/theme_repository.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/skins2/src/theme_repository.cpp b/modules/gui/skins2/src/theme_repository.cpp
index 5e4819b..643209f 100644
--- a/modules/gui/skins2/src/theme_repository.cpp
+++ b/modules/gui/skins2/src/theme_repository.cpp
@@ -91,7 +91,11 @@ ThemeRepository::ThemeRepository( intf_thread_t *pIntf ): SkinObject( pIntf )
 
 ThemeRepository::~ThemeRepository()
 {
+    var_DelCallback( getIntf(), "intf-skins", changeSkin, this );
+    var_DelCallback( getIntf(), "intf-skins-interactive", changeSkin, this );
+
     var_Destroy( getIntf(), "intf-skins" );
+    var_Destroy( getIntf(), "intf-skins-interactive" );
 }
 
 




More information about the vlc-devel mailing list