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 )
playMRL( const QString & ) );
isActive = config_GetInt( p_intf, "qt-recentplay" );
filter = new QRegExp(
qfu( config_GetPsz( p_intf, "qt-recentplay-filter" ) ),
Qt::CaseInsensitive );
char* psz_tmp = config_GetPsz( p_intf, "qt-recentplay-filter" );
filter = new QRegExp( psz_tmp, Qt::CaseInsensitive );
free( psz_tmp );
load();
if ( !isActive ) clear();
......@@ -54,6 +54,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
RecentsMRL::~RecentsMRL()
{
delete filter;
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