Browse Source

Memory leaks associated with ctkSimplePythonShell tests are failure

Jean-Christophe Fillion-Robin 13 years ago
parent
commit
d38e0efc66
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Applications/ctkSimplePythonShell/ctkSimplePythonShellMain.cpp

+ 5 - 0
Applications/ctkSimplePythonShell/ctkSimplePythonShellMain.cpp

@@ -36,10 +36,15 @@
 # include "ctkTestWrappedQListOfVTKObject.h"
 # include "ctkTestWrappedVTKSlot.h"
 # include "ctkTestWrappedVTKQInvokable.h"
+# include <vtkDebugLeaks.h>
 #endif
 
 int main(int argc, char** argv)
 {
+#ifdef CTK_WRAP_PYTHONQT_USE_VTK
+  vtkDebugLeaks::SetExitError(true);
+#endif
+
   QApplication app(argc, argv);
 
   ctkCommandLineParser parser;