]> git.sesse.net Git - vlc/commitdiff
Pah; we cannot free these variables, since they are const.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2010 22:08:52 +0000 (00:08 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2010 22:08:52 +0000 (00:08 +0200)
modules/access/sdi.cpp

index c2a2bdaf725fc3eb8608a456823397b7c72a3d00..7da119dbe45a03c182825a12cd6d9a804fd2e5ca 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 )
     {
@@ -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 )
         {