]> git.sesse.net Git - vlc/blobdiff - src/interface/interaction.c
interaction: Fix a interaction leak.
[vlc] / src / interface / interaction.c
index 633ea49c085a1a83b46e32a08dcdb5293313159f..e0920eaf50d62a70f0ff56f8e635f728233f828e 100644 (file)
@@ -474,7 +474,11 @@ static int DialogSend( vlc_object_t *p_this, interaction_dialog_t *p_dialog )
     if( p_dialog->i_id == 0 )
         p_dialog->i_id = ++p_interaction->i_last_id;
 
-    if( p_this->i_flags & OBJECT_FLAGS_NOINTERACT ) return VLC_EGENERIC;
+    if( p_this->i_flags & OBJECT_FLAGS_NOINTERACT )
+    {
+        vlc_object_release( p_interaction );
+        return VLC_EGENERIC;
+    }
 
     if( config_GetInt( p_this, "interact" ) ||
         p_dialog->i_flags & DIALOG_BLOCKING_ERROR ||