]> git.sesse.net Git - vlc/blobdiff - modules/access/sdi.cpp
Remove extra braces.
[vlc] / modules / access / sdi.cpp
index f2b99cfdafd90aeba5b622bc40d871b8d1d4d4b8..b5e021c415adba34a64af82a8c4baa59ee7431f2 100644 (file)
@@ -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 )
     {
@@ -382,6 +380,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;
         }
@@ -438,9 +437,7 @@ static int Open( vlc_object_t *p_this )
         IDeckLinkDisplayMode *p_display_mode;
         result = p_display_iterator->Next( &p_display_mode );
         if( result != S_OK || !p_display_mode )
-        {
             break; 
-        }
 
         char sz_mode_id_text[5] = {0};
         BMDDisplayMode mode_id = ntohl( p_display_mode->GetDisplayMode() );