Revision: 49031
          http://brlcad.svn.sourceforge.net/brlcad/?rev=49031&view=rev
Author:   indianlarry
Date:     2012-01-24 16:01:14 +0000 (Tue, 24 Jan 2012)
Log Message:
-----------
make sure to ClearEntries()  when array instances not owned by MgrNodeArray 
otherwise parent class  GenNodeArray will try and delete memory error

Modified Paths:
--------------
    brlcad/trunk/src/other/step/src/cleditor/instmgr.cc

Modified: brlcad/trunk/src/other/step/src/cleditor/instmgr.cc
===================================================================
--- brlcad/trunk/src/other/step/src/cleditor/instmgr.cc 2012-01-24 15:53:20 UTC 
(rev 49030)
+++ brlcad/trunk/src/other/step/src/cleditor/instmgr.cc 2012-01-24 16:01:14 UTC 
(rev 49031)
@@ -62,7 +62,11 @@
     if(_ownsInstances)
     {
        master->DeleteEntries();
+    } else {
+       master->ClearEntries();
     }
+    sortedMaster->ClearEntries();
+
     delete master;
     delete sortedMaster;
 }

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


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to