Commit 679e4e76 authored by Rémi Duraffort's avatar Rémi Duraffort

skins2: delete the callback only if it was really added.

(cherry picked from commit 2c383bfc)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 2f24e13c
......@@ -115,11 +115,11 @@ Dialogs::~Dialogs()
// Detach the dialogs provider from its parent interface
module_unneed( m_pProvider, m_pModule );
vlc_object_release( m_pProvider );
}
/* Unregister callbacks */
var_DelCallback( getIntf()->p_libvlc, "intf-popupmenu",
PopupMenuCB, this );
/* Unregister callbacks */
var_DelCallback( getIntf()->p_libvlc, "intf-popupmenu",
PopupMenuCB, this );
}
}
......
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