[vlc-commits] Qt: fix leak introduced in previous commit

Jean-Baptiste Kempf git at videolan.org
Tue May 15 17:55:22 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 15 17:54:18 2012 +0200| [06ceac25f5d7a30ee585cb0f1c0b925f31234d74] | committer: Jean-Baptiste Kempf

Qt: fix leak introduced in previous commit

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

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

diff --git a/modules/gui/qt4/recents.cpp b/modules/gui/qt4/recents.cpp
index 5f97374..a1b0fc4 100755
--- a/modules/gui/qt4/recents.cpp
+++ b/modules/gui/qt4/recents.cpp
@@ -90,7 +90,10 @@ void RecentsMRL::addRecent( const QString &mrl )
     /* Add to the Windows 7 default list in taskbar */
     char* path = make_path( qtu( mrl ) );
     if( path )
+    {
         SHAddToRecentDocs( SHARD_PATHW, path );
+        free( path );
+    }
 #endif
 
     int i_index = stack->indexOf( mrl );



More information about the vlc-commits mailing list