Commit b83cc66f authored by Rémi Duraffort's avatar Rémi Duraffort

Recent: don't leak just for fun.

parent 5d085ee8
...@@ -44,9 +44,9 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf ) ...@@ -44,9 +44,9 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
playMRL( const QString & ) ); playMRL( const QString & ) );
isActive = config_GetInt( p_intf, "qt-recentplay" ); isActive = config_GetInt( p_intf, "qt-recentplay" );
filter = new QRegExp( char* psz_tmp = config_GetPsz( p_intf, "qt-recentplay-filter" );
qfu( config_GetPsz( p_intf, "qt-recentplay-filter" ) ), filter = new QRegExp( psz_tmp, Qt::CaseInsensitive );
Qt::CaseInsensitive ); free( psz_tmp );
load(); load();
if ( !isActive ) clear(); if ( !isActive ) clear();
...@@ -54,6 +54,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf ) ...@@ -54,6 +54,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
RecentsMRL::~RecentsMRL() RecentsMRL::~RecentsMRL()
{ {
delete filter;
delete stack; delete stack;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment