From: Steinar Gunderson Date: Sun, 26 Sep 2010 22:26:37 +0000 (+0200) Subject: Don't leak references to card when we have more than one. X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=6da459431abbea07af556699a251673a706ca584 Don't leak references to card when we have more than one. --- diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index 9e9acc9249..a937ae18ed 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -286,6 +286,8 @@ static int Open( vlc_object_t *p_this ) int i_card_index = var_CreateGetInteger( p_demux, "sdi-card-index" ); for( int i = 0; i <= i_card_index; ++i ) { + if( p_sys->p_card ) + p_sys->p_card->Release(); result = decklink_iterator->Next( &p_sys->p_card ); if( result != S_OK ) break;