Commit 887f3e70 authored by Erwan Tulou's avatar Erwan Tulou

Qt: remove a suspicious delete

in Qt doc about QMainWindow, about statusBar() and setStatusBar(), it reads :
"Note that QMainWindow takes ownership of the statusbar pointer
and deletes it at the appropriate time."
So, trying to delete the pointer returned by statusBar() can but
end up in a double free at some point.
parent 2ba05d1f
......@@ -304,8 +304,6 @@ MainInterface::~MainInterface()
/* Save this size */
QVLCTools::saveWidgetPosition(settings, this);
delete statusBar();
/* Unregister callbacks */
var_DelCallback( p_intf->p_libvlc, "intf-boss", IntfBossCB, p_intf );
var_DelCallback( p_intf->p_libvlc, "intf-show", IntfRaiseMainCB, p_intf );
......
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