From 7e97924ce74631403452a8b9652c309d65946d9c Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Tue, 15 Jul 2008 19:24:55 +0200 Subject: [PATCH] interaction: Fix a interaction leak. --- src/interface/interaction.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 || -- 2.39.2