From a4b3f6b41a5dc562e41d4b7fbb9e61dace1715e1 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 14 Jun 2017 10:54:21 -0400 Subject: [PATCH] fix form of delete used --- src/zm_zone.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_zone.cpp b/src/zm_zone.cpp index 7430f2498..8e3b90098 100644 --- a/src/zm_zone.cpp +++ b/src/zm_zone.cpp @@ -792,7 +792,7 @@ bool Zone::ParseZoneString( const char *zone_string, int &zone_id, int &colour, zone_id = strtol( str, 0, 10 ); Debug( 3, "Got zone %d from zone string", zone_id ); if ( !ws ) { - delete str_ptr; + delete[] str_ptr; return( true ); } @@ -806,7 +806,7 @@ bool Zone::ParseZoneString( const char *zone_string, int &zone_id, int &colour, colour = strtol( str, 0, 16 ); Debug( 3, "Got colour %06x from zone string", colour ); if ( !ws ) { - delete str_ptr; + delete[] str_ptr; return( true ); } *ws = '\0';