diff --git a/sfizz/LeakDetector.h b/sfizz/LeakDetector.h index 21f737d3..659d9033 100644 --- a/sfizz/LeakDetector.h +++ b/sfizz/LeakDetector.h @@ -60,7 +60,7 @@ private: }; std::atomic count { 0 }; }; - static ObjectCounter objectCounter; + inline static ObjectCounter objectCounter; }; #ifndef NDEBUG @@ -74,4 +74,4 @@ private: #else #define LEAK_DETECTOR(Class) -#endif \ No newline at end of file +#endif