Revision: 48441
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48441&view=rev
Author:   indianlarry
Date:     2012-01-11 21:10:32 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Added coverity suggested work-around for double-free of virtual base class 
memory in destructor by setting freed member to NULL. Relates to CIDs: 2042-53

Modified Paths:
--------------
    brlcad/trunk/src/conv/step/NamedUnit.cpp

Modified: brlcad/trunk/src/conv/step/NamedUnit.cpp
===================================================================
--- brlcad/trunk/src/conv/step/NamedUnit.cpp    2012-01-11 21:08:43 UTC (rev 
48440)
+++ brlcad/trunk/src/conv/step/NamedUnit.cpp    2012-01-11 21:10:32 UTC (rev 
48441)
@@ -50,6 +50,7 @@
 NamedUnit::~NamedUnit() {
     if (dimensions != NULL ) {
        delete dimensions;
+       dimensions = NULL;
     }
 }
 

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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to