Pārlūkot izejas kodu

Memory leaks associated with ctkSimplePythonShell tests are failure

Jean-Christophe Fillion-Robin 13 gadi atpakaļ
vecāks
revīzija
d38e0efc66

+ 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;