[vlc-devel] commit: qt4: don't leak the event we compute ourself. ( Rémi Duraffort )

git version control git at videolan.org
Sun Jan 25 13:23:45 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jan 25 12:58:03 2009 +0100| [513870ccf29c8e6750d07f96ea64983b57b8f5d8] | committer: Rémi Duraffort 

qt4: don't leak the event we compute ourself.

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

 modules/gui/qt4/input_manager.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 535bfd8..711cb6c 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -842,6 +842,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
 
     IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
     customEvent( static_cast<QEvent*>(event) );
+    delete event;
 }
 
 MainInputManager::~MainInputManager()




More information about the vlc-devel mailing list