[vlc-commits] Qt: fix memory leak

Hannes Domani git at videolan.org
Wed Jul 15 09:10:32 CEST 2015


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Tue Jul  7 19:22:00 2015 +0200| [c5a36efc2bbcae2adc9016eda9a4530527de2e56] | committer: Jean-Baptiste Kempf

Qt: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5a36efc2bbcae2adc9016eda9a4530527de2e56
---

 modules/gui/qt4/dialogs/toolbar.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index c1e667a..4a8d48a 100644
--- a/modules/gui/qt4/dialogs/toolbar.cpp
+++ b/modules/gui/qt4/dialogs/toolbar.cpp
@@ -888,6 +888,8 @@ bool DroppingController::eventFilter( QObject *obj, QEvent *event )
             /* Start the effective drag */
             drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::MoveAction);
             b_draging = false;
+
+            delete dI;
             }
             return true;
 



More information about the vlc-commits mailing list