From c4c75ec7733e6dbceff2babccc73b21e733a8f3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 25 Jun 2008 22:10:27 +0300 Subject: [PATCH] Qt4: small memory leak --- modules/gui/qt4/qt4.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp index e663d754c8..4255a2b0cf 100644 --- a/modules/gui/qt4/qt4.cpp +++ b/modules/gui/qt4/qt4.cpp @@ -403,8 +403,14 @@ static void Init( intf_thread_t *p_intf ) /* And quit */ + windowLock.lock (); + var_Get (p_intf, "window_widget", &val); + if (val.p_address) + delete (QPointer *)val.p_address; val.p_address = NULL; var_Set (p_intf, "window_widget", val); + windowLock.unlock(); + /* Destroy first the main interface because it is connected to some slots in the MainInputManager */ delete p_intf->p_sys->p_mi; -- 2.39.2