fix form of delete used
parent
b51d885f66
commit
a4b3f6b41a
|
@ -792,7 +792,7 @@ bool Zone::ParseZoneString( const char *zone_string, int &zone_id, int &colour,
|
||||||
zone_id = strtol( str, 0, 10 );
|
zone_id = strtol( str, 0, 10 );
|
||||||
Debug( 3, "Got zone %d from zone string", zone_id );
|
Debug( 3, "Got zone %d from zone string", zone_id );
|
||||||
if ( !ws ) {
|
if ( !ws ) {
|
||||||
delete str_ptr;
|
delete[] str_ptr;
|
||||||
return( true );
|
return( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -806,7 +806,7 @@ bool Zone::ParseZoneString( const char *zone_string, int &zone_id, int &colour,
|
||||||
colour = strtol( str, 0, 16 );
|
colour = strtol( str, 0, 16 );
|
||||||
Debug( 3, "Got colour %06x from zone string", colour );
|
Debug( 3, "Got colour %06x from zone string", colour );
|
||||||
if ( !ws ) {
|
if ( !ws ) {
|
||||||
delete str_ptr;
|
delete[] str_ptr;
|
||||||
return( true );
|
return( true );
|
||||||
}
|
}
|
||||||
*ws = '\0';
|
*ws = '\0';
|
||||||
|
|
Loading…
Reference in New Issue