vlc | branch: master | Steve Lhomme <[email protected]> | Wed Apr 3 09:07:30 2019 +0200| [5de99d33a801b689bdae9da90c02c5c7f9c8a5a0] | committer: Steve Lhomme
qt: don't call SHAddToRecentDocs() with NULL According to the doc it resets the list of recent documents. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5de99d33a801b689bdae9da90c02c5c7f9c8a5a0 --- modules/gui/qt/recents.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt/recents.cpp b/modules/gui/qt/recents.cpp index 44b700479b..282be6327e 100644 --- a/modules/gui/qt/recents.cpp +++ b/modules/gui/qt/recents.cpp @@ -91,8 +91,11 @@ void RecentsMRL::addRecent( const QString &mrl ) if( path ) { wchar_t *wmrl = ToWide( path ); - SHAddToRecentDocs( SHARD_PATHW, wmrl ); - free( wmrl ); + if (wmrl != NULL) + { + SHAddToRecentDocs( SHARD_PATHW, wmrl ); + free( wmrl ); + } free( path ); } #endif _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
