diff --git a/contrib/bobtoolz/visfind.cpp b/contrib/bobtoolz/visfind.cpp index f8e327ab..c584d088 100644 --- a/contrib/bobtoolz/visfind.cpp +++ b/contrib/bobtoolz/visfind.cpp @@ -207,7 +207,7 @@ list *CreateTrace( dleaf_t *leaf, int c, vis_header *header, byte *vi } } - delete repeatlist; + delete[] repeatlist; return pointlist; } diff --git a/contrib/prtview/portals.cpp b/contrib/prtview/portals.cpp index d81589e2..ff67244a 100644 --- a/contrib/prtview/portals.cpp +++ b/contrib/prtview/portals.cpp @@ -235,7 +235,7 @@ void CPortals::Load(){ return; } - if ( portal_count < 0 ) { + if ( portal_count <= 0 ) { fclose( in ); portal_count = 0;