]> git.sesse.net Git - vlc/blobdiff - modules/gui/wince/timer.cpp
Use pl_Release with the right argument.
[vlc] / modules / gui / wince / timer.cpp
index df58e803b089b9556a017124096f024172171b3e..5135609e0e31cc3f10f78f8537cd60b50e7be796 100644 (file)
@@ -56,7 +56,7 @@ Timer::Timer( intf_thread_t *_p_intf, HWND hwnd, Interface *_p_main_interface)
     if( p_playlist != NULL )
     {
         var_AddCallback( p_playlist, "intf-popupmenu", PopupMenuCB, p_intf );
-        pl_Release( p_playlist );
+        pl_Release( p_intf );
     }
 
     SetTimer( hwnd, 1, 200 /*milliseconds*/, NULL );
@@ -69,7 +69,7 @@ Timer::~Timer()
     if( p_playlist != NULL )
     {
         var_DelCallback( p_playlist, "intf-popupmenu", PopupMenuCB, p_intf );
-        pl_Release( p_playlist );
+        pl_Release( p_intf );
     }
 }