Commit eea56f04 authored by Tristan Matthews's avatar Tristan Matthews

libvlc: don't use string after free

parent 55c3f249
......@@ -328,12 +328,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
{
dbus_message_unref( msg );
msg = NULL;
free( mrl );
continue;
}
free( mrl );
if( unlikely(msg == NULL) )
continue;
msg_Dbg( p_libvlc, "Adds %s to the running media player", mrl );
free( mrl );
/* send message and get a handle for a reply */
DBusMessage *reply = dbus_connection_send_with_reply_and_block( conn, msg, -1,
......
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