From: Steinar Gunderson Date: Sun, 26 Sep 2010 22:11:10 +0000 (+0200) Subject: Release the display mode when we are done with it. X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=f659703fb4033420e0607d34bc7cd880a5802ea7 Release the display mode when we are done with it. --- diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index b5e021c415..bce0a04624 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -448,6 +448,7 @@ static int Open( vlc_object_t *p_this ) if( result != S_OK ) { msg_Err( p_demux, "Failed to get display mode name" ); + p_display_mode->Release(); p_display_iterator->Release(); Close( p_this ); return VLC_EGENERIC; @@ -458,6 +459,7 @@ static int Open( vlc_object_t *p_this ) if( result != S_OK ) { msg_Err( p_demux, "Failed to get frame rate" ); + p_display_mode->Release(); p_display_iterator->Release(); Close( p_this ); return VLC_EGENERIC; @@ -501,6 +503,8 @@ static int Open( vlc_object_t *p_this ) p_sys->i_fps_den = frame_duration; p_sys->i_dominance_flags = i_dominance_flags; } + + p_display_mode->Release(); } p_display_iterator->Release();