BUG#: 3541
[tpot/pegasus/.git] / src / Pegasus / ControlProviders / NamespaceProvider / NamespaceProvider.h
index 4402069d9cedf20f84efd0ab5c0942ddc890818e..82c25b8ba8bfcc57060cb0c86240c0e76e51223e 100644 (file)
@@ -216,6 +216,9 @@ public:
 
     void terminate(void)
     {
+       // delete self. this is necessary because the entry point for this object allocated it, and
+       // the module is responsible for its memory management.
+       delete this;
     }
 
 private: