Преглед изворни кода

Fix for big stupid bbFunction ref counting bug.

Mark Sibly пре 7 година
родитељ
комит
47b88e79ae
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      modules/monkey/native/bbfunction.h

+ 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(){