Commit 11fa5c5c authored by Rémi Duraffort's avatar Rémi Duraffort

Remove unneded test before delete/free.

parent 88014506
...@@ -38,7 +38,6 @@ extern "C" { ...@@ -38,7 +38,6 @@ extern "C" {
void dvb_deleteBDAGraph( access_t* p_access ) void dvb_deleteBDAGraph( access_t* p_access )
{ {
if( p_access->p_sys->p_bda_module )
delete p_access->p_sys->p_bda_module; delete p_access->p_sys->p_bda_module;
}; };
...@@ -527,7 +526,6 @@ int BDAGraph::SubmitDVBSTuneRequest() ...@@ -527,7 +526,6 @@ int BDAGraph::SubmitDVBSTuneRequest()
if( p_dvbs_locator ) if( p_dvbs_locator )
p_dvbs_locator->Release(); p_dvbs_locator->Release();
SysFreeString( bstr_input_range ); SysFreeString( bstr_input_range );
if( pwsz_input_range )
delete pwsz_input_range; delete pwsz_input_range;
free(pwsz_input_range); free(pwsz_input_range);
free(pwsz_input_range); free(pwsz_input_range);
...@@ -758,9 +756,7 @@ HRESULT BDAGraph::CreateTuneRequest() ...@@ -758,9 +756,7 @@ HRESULT BDAGraph::CreateTuneRequest()
if( p_this_tuning_space ) if( p_this_tuning_space )
p_this_tuning_space->Release(); p_this_tuning_space->Release();
SysFreeString( bstr_name ); SysFreeString( bstr_name );
if( wpsz_network_name )
delete wpsz_network_name; delete wpsz_network_name;
if( psz_network_name )
free(psz_network_name); free(psz_network_name);
} }
} l; } l;
...@@ -909,7 +905,7 @@ HRESULT BDAGraph::CreateTuneRequest() ...@@ -909,7 +905,7 @@ HRESULT BDAGraph::CreateTuneRequest()
if( IsEqualCLSID( guid_network_type, CLSID_DVBSNetworkProvider ) ) if( IsEqualCLSID( guid_network_type, CLSID_DVBSNetworkProvider ) )
cls_tuning_space = CLSID_DVBSTuningSpace; cls_tuning_space = CLSID_DVBSTuningSpace;
if( l.wpsz_network_name ) delete l.wpsz_network_name; delete l.wpsz_network_name;
l.i_name_len = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, l.i_name_len = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED,
l.psz_network_name, -1, l.wpsz_network_name, 0 ); l.psz_network_name, -1, l.wpsz_network_name, 0 );
if( l.i_name_len > 0 ) if( l.i_name_len > 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment