add memleak checker
[enigma2.git] / lib / base / eerror.cpp
index 11bb994368ce58fb54ddf4f36c7f8c82558751da..af78040634f2fa1ea6322c9f20dd4fdf6468db5f 100644 (file)
@@ -8,6 +8,14 @@
 
 // #include <lib/gui/emessage.h>
 
+#ifdef MEMLEAK_CHECK
+AllocList *allocList;
+pthread_mutex_t memLock =
+       PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+#else
+       #include <lib/base/elock.h>
+#endif
+
 int infatal=0;
 
 Signal2<void, int, const std::string&> logOutput;