Commit c4c75ec7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: small memory leak

parent fbb21844
...@@ -403,8 +403,14 @@ static void Init( intf_thread_t *p_intf ) ...@@ -403,8 +403,14 @@ static void Init( intf_thread_t *p_intf )
/* And quit */ /* And quit */
windowLock.lock ();
var_Get (p_intf, "window_widget", &val);
if (val.p_address)
delete (QPointer<MainInterface> *)val.p_address;
val.p_address = NULL; val.p_address = NULL;
var_Set (p_intf, "window_widget", val); var_Set (p_intf, "window_widget", val);
windowLock.unlock();
/* Destroy first the main interface because it is connected to some slots /* Destroy first the main interface because it is connected to some slots
in the MainInputManager */ in the MainInputManager */
delete p_intf->p_sys->p_mi; delete p_intf->p_sys->p_mi;
......
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