2
0
Эх сурвалжийг харах

Fix for big stupid bbFunction ref counting bug.

Mark Sibly 7 жил өмнө
parent
commit
47b88e79ae

+ 2 - 2
modules/monkey/native/bbfunction.h

@@ -30,9 +30,9 @@ template<class R,class...A> struct bbFunction<R(A...)>{
 	struct Rep{
 		
 #ifdef BB_THREADS
-		std::atomic_int refs;
+		std::atomic_int refs{0};
 #else
-		int refs;
+		int refs{0};
 #endif
 
 		virtual ~Rep(){