Changeset 87 for osgVisual/src/draw2D


Ignore:
Timestamp:
Jul 28, 2010, 5:13:22 PM (14 years ago)
Author:
Torben Dannhauer
Message:

Introductes VS 2008 Memory Leak Debugging.
Todo: Compile on Linux and compare with Valgrind, VS 2008 seems to be awkward in leak debugging

Location:
osgVisual/src/draw2D
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/draw2D/visual_debug_hud.cpp

    r31 r87  
    2121visual_debug_hud::visual_debug_hud(void)
    2222{
    23 
     23        #include <leakDetection.h>
    2424}
    2525
     
    5151        if (isInitialized)
    5252        {       
     53                // Remove Draw Content
     54                visual_draw2D::getInstance()->removeDrawContent("HUD");
     55
    5356                // Remove updatecallback
    54                 this->removeUpdateCallback( updateCallback );
     57                this->removeEventCallback( updateCallback );
    5558                updateCallback = NULL;
    5659        }
  • osgVisual/src/draw2D/visual_draw2D.cpp

    r31 r87  
    2222{
    2323        OSG_NOTIFY( osg::ALWAYS ) << "visual_draw2D constructed" << std::endl;
     24        #include <leakDetection.h>
    2425        initialized = false;
    2526}
  • osgVisual/src/draw2D/visual_hud.cpp

    r31 r87  
    2121visual_hud::visual_hud(void)
    2222{
     23        #include <leakDetection.h>
    2324}
    2425
Note: See TracChangeset for help on using the changeset viewer.