Commit a19acf0b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: memory leak

parent 1d2eb888
......@@ -548,12 +548,9 @@ void DialogsProvider::streamingDialog( QWidget *parent, QString mrl,
if( s->exec() == QDialog::Accepted )
{
msg_Dbg( p_intf, "Sout mrl %s", qta( s->getMrl() ) );
/* Just do it */
int i_len = strlen( qtu( s->getMrl() ) ) + 10;
char *psz_option = (char*)malloc( i_len );
snprintf( psz_option, i_len - 1, "%s", qtu( s->getMrl() ) );
const char *psz_option = qtu( s->getMrl() );
msg_Dbg( p_intf, "Sout mrl %s", psz_option );
playlist_AddExt( THEPL, qtu( mrl ), "Streaming",
PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END,
-1, &psz_option, 1, true, pl_Unlocked );
......
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