git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: fix leak in use of Boehm GC
commit4c26ab0a3858c08f7acbfb4fb20abe869179a026 authorAndy Arvanitis <andyarvanitis@gmail.com> dateTue 1 Nov 2016, 20:05 (10 years ago) parent353e3e2
1 file changed+1−1
pcc/include/purescript_memory.hh+1−1
pcc/include/purescript_memory.hh+1−1
@@ -19,7 +19,7 @@
1919 #define GC_THREADS
2020 #include <gc/gc_cpp.h>
2121 #include <gc/gc_allocator.h>
22− #define WITH_ALLOCATOR(T) , traceable_allocator<T>
22+ #define WITH_ALLOCATOR(T) , gc_allocator<T>
2323 #define MANAGED_TYPE(T) T*
2424 #define MAKE_MANAGED(T) new (GC) T
2525 #define MAKE_MANAGED_FINALIZED(T) new (GC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T