Revision: 55975
          http://sourceforge.net/p/brlcad/code/55975
Author:   starseeker
Date:     2013-07-08 14:59:47 +0000 (Mon, 08 Jul 2013)
Log Message:
-----------
Re-apply r55331 - use delete[] to free new[] memory

Revision Links:
--------------
    http://sourceforge.net/p/brlcad/code/55331

Modified Paths:
--------------
    brlcad/trunk/src/other/stepcode/src/clstepcore/ExpDict.cc

Modified: brlcad/trunk/src/other/stepcode/src/clstepcore/ExpDict.cc
===================================================================
--- brlcad/trunk/src/other/stepcode/src/clstepcore/ExpDict.cc   2013-07-08 
14:39:19 UTC (rev 55974)
+++ brlcad/trunk/src/other/stepcode/src/clstepcore/ExpDict.cc   2013-07-08 
14:59:47 UTC (rev 55975)
@@ -28,7 +28,7 @@
 }
 
 Explicit_item_id__set::~Explicit_item_id__set() {
-    delete [] _buf;
+    delete[] _buf;
 }
 
 void Explicit_item_id__set::Check( int index ) {
@@ -38,7 +38,7 @@
         _bufsize = ( index + 1 ) * 2;
         newbuf = new Explicit_item_id_ptr[_bufsize];
         memmove( newbuf, _buf, _count * sizeof( Explicit_item_id_ptr ) );
-        delete _buf;
+        delete[] _buf;
         _buf = newbuf;
     }
 }
@@ -117,7 +117,7 @@
 }
 
 Implicit_item_id__set::~Implicit_item_id__set() {
-    delete _buf;
+    delete[] _buf;
 }
 
 void Implicit_item_id__set::Check( int index ) {
@@ -127,7 +127,7 @@
         _bufsize = ( index + 1 ) * 2;
         newbuf = new Implicit_item_id_ptr[_bufsize];
         memmove( newbuf, _buf, _count * sizeof( Implicit_item_id_ptr ) );
-        delete _buf;
+        delete[]_buf;
         _buf = newbuf;
     }
 }
@@ -206,7 +206,7 @@
 }
 
 Interface_spec__set::~Interface_spec__set() {
-    delete [] _buf;
+    delete[] _buf;
 }
 
 void Interface_spec__set::Check( int index ) {
@@ -216,7 +216,7 @@
         _bufsize = ( index + 1 ) * 2;
         newbuf = new Interface_spec_ptr[_bufsize];
         memmove( newbuf, _buf, _count * sizeof( Interface_spec_ptr ) );
-        delete _buf;
+        delete[] _buf;
         _buf = newbuf;
     }
 }
@@ -1025,7 +1025,7 @@
 Where_rule__list::~Where_rule__list() {
     Clear();
 
-    delete _buf;
+    delete[] _buf;
 }
 
 void Where_rule__list::Check( int index ) {
@@ -1035,7 +1035,7 @@
         _bufsize = ( index + 1 ) * 2;
         newbuf = new Where_rule_ptr[_bufsize];
         memmove( newbuf, _buf, _count * sizeof( Where_rule_ptr ) );
-        delete _buf;
+        delete[] _buf;
         _buf = newbuf;
     }
 }
@@ -1134,7 +1134,7 @@
 Uniqueness_rule__set::~Uniqueness_rule__set() {
     Clear();
 
-    delete _buf;
+    delete[] _buf;
 }
 
 void Uniqueness_rule__set::Check( int index ) {
@@ -1144,7 +1144,7 @@
         _bufsize = ( index + 1 ) * 2;
         newbuf = new Uniqueness_rule_ptr[_bufsize];
         memmove( newbuf, _buf, _count * sizeof( Uniqueness_rule_ptr ) );
-        delete _buf;
+        delete[] _buf;
         _buf = newbuf;
     }
 }
@@ -1255,7 +1255,7 @@
 
 Global_rule__set::~Global_rule__set() {
     Clear();
-    delete _buf;
+    delete[] _buf;
 }
 
 void Global_rule__set::Check( int index ) {
@@ -1265,7 +1265,7 @@
         _bufsize = ( index + 1 ) * 2;
         newbuf = new Global_rule_ptr[_bufsize];
         memmove( newbuf, _buf, _count * sizeof( Global_rule_ptr ) );
-        delete [] _buf;
+        delete[] _buf;
         _buf = newbuf;
     }
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to