From 3af2556f3d181d7c1391d45519d3aa63a8c4a686 Mon Sep 17 00:00:00 2001 From: Steinar Gunderson Date: Mon, 27 Sep 2010 00:08:52 +0200 Subject: [PATCH] Pah; we cannot free these variables, since they are const. --- modules/access/sdi.cpp | 5 ----- 1 file changed, 5 deletions(-) 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 ) { -- 2.39.2