Fix gc_cleanup destructor for non-heap objects (gc_cpp)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 9 Dec 2016 23:19:32 +0000 (02:19 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 9 Dec 2016 23:19:32 +0000 (02:19 +0300)
commitbb4c81b9808fe7515cdb9596a58bdee5480e2e68
tree2963e1e691f467e3b381e0fc1e79f79b8e11482c
parentbfeaf865a4f87791d3fafcf51bac5eb04e6cc072
Fix gc_cleanup destructor for non-heap objects (gc_cpp)

* include/gc_cpp.h (gc_cleanup::~gc_cleanup): If GC_base(this) returns
null (could be if the object is not allocated dynamically) then do not
call GC_register_finalizer_ignore_self.
include/gc_cpp.h