From: Steinar Gunderson Date: Sun, 26 Sep 2010 22:08:52 +0000 (+0200) Subject: Pah; we cannot free these variables, since they are const. X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=3af2556f3d181d7c1391d45519d3aa63a8c4a686 Pah; we cannot free these variables, since they are const. --- diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index c2a2bdaf72..7da119dbe4 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -306,13 +306,11 @@ static int Open( vlc_object_t *p_this ) if( result != S_OK ) { msg_Err( p_demux, "Could not get model name" ); - free( psz_model_name ); Close( p_this ); return VLC_EGENERIC; } msg_Dbg( p_demux, "Opened DeckLink PCI card %d (%s)", i_card_index, psz_model_name ); - free( psz_model_name ); if( p_sys->p_card->QueryInterface( IID_IDeckLinkInput, (void**)&p_sys->p_input) != S_OK ) { @@ -452,7 +450,6 @@ static int Open( vlc_object_t *p_this ) if( result != S_OK ) { msg_Err( p_demux, "Failed to get display mode name" ); - free( psz_mode_name ); p_display_iterator->Release(); Close( p_this ); return VLC_EGENERIC; @@ -463,7 +460,6 @@ static int Open( vlc_object_t *p_this ) if( result != S_OK ) { msg_Err( p_demux, "Failed to get frame rate" ); - free( psz_mode_name ); p_display_iterator->Release(); Close( p_this ); return VLC_EGENERIC; @@ -497,7 +493,6 @@ static int Open( vlc_object_t *p_this ) sz_mode_id_text, psz_mode_name, p_display_mode->GetWidth(), p_display_mode->GetHeight(), double(time_scale) / frame_duration, psz_field_dominance ); - free( psz_mode_name ); if( wanted_mode_id == mode_id ) {