1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

Don't double allocate weak backfreferences

This commit is contained in:
Charles Lowell 2012-07-08 15:08:37 -05:00
parent 907562abd4
commit 09e4d40251

View file

@ -15,8 +15,6 @@ namespace rr {
Backref::Backref(VALUE initial) {
allocate(initial);
this->storage = rb_funcall(Storage, _new, 1, initial);
rb_gc_register_address(&storage);
}
Backref::~Backref() {