From: Pierre d'Herbemont Date: Tue, 15 Jul 2008 17:24:55 +0000 (+0200) Subject: interaction: Fix a interaction leak. X-Git-Tag: 0.9.0-test3~438 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7e97924ce74631403452a8b9652c309d65946d9c;p=vlc interaction: Fix a interaction leak. --- diff --git a/src/interface/interaction.c b/src/interface/interaction.c index 633ea49c08..e0920eaf50 100644 --- a/src/interface/interaction.c +++ b/src/interface/interaction.c @@ -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 ||