X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fsdi.cpp;h=c2a2bdaf725fc3eb8608a456823397b7c72a3d00;hb=aedd2db49bd6d4f26b5dc6113f1cb6e92e50ff50;hp=b9329e84fccd2d5e64abc254dbd51fb39fd8115e;hpb=55b7b5bdb7e65e94465d4ff5660cfc2964d7a18f;p=vlc diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index b9329e84fc..c2a2bdaf72 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -306,11 +306,13 @@ 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 ) { @@ -380,6 +382,7 @@ static int Open( vlc_object_t *p_this ) { msg_Err( p_demux, "Invalid --sdi-audio-connection specified; choose one of " \ "embedded, aesebu, or analog." ); + p_config->Release(); Close( p_this ); return VLC_EGENERIC; } @@ -449,6 +452,7 @@ 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; @@ -459,6 +463,7 @@ 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; @@ -492,6 +497,7 @@ 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 ) {