]> granicus.if.org Git - gc/commit
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>
Mon, 6 Feb 2017 16:58:50 +0000 (19:58 +0300)
commited19165ed57cf9f5427c9e0f4a53be9ec680191b
treecf35649a445eda3bf61684034565a9cf9e24df42
parent186617cd04a54745d9b548a6df98140d1c2df5a0
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