]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/dialogs/bookmarks.cpp
Use pl_Release with the right argument.
[vlc] / modules / gui / wxwidgets / dialogs / bookmarks.cpp
index 13dfa1d45d29f3fb3ed36aba452070f95e284d07..864a86b59049d18a9c3ad881ed945879e11075c4 100644 (file)
@@ -210,7 +210,7 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf, wxWindow *p_parent )
        /* Some global changes happened -> Rebuild all */
        var_AddCallback( p_playlist, "playlist-current",
                         PlaylistChanged, this );
-       pl_Release( p_playlist );
+       pl_Release( p_intf );
     }
 }
 
@@ -221,7 +221,7 @@ BookmarksDialog::~BookmarksDialog()
     {
        var_DelCallback( p_playlist, "playlist-current",
                         PlaylistChanged, this );
-       pl_Release( p_playlist );
+       pl_Release( p_intf );
     }
 }