]> git.sesse.net Git - vlc/commitdiff
interaction: Fix a interaction leak.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 15 Jul 2008 17:24:55 +0000 (19:24 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 15 Jul 2008 17:34:03 +0000 (19:34 +0200)
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 ||