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:
parent
907562abd4
commit
09e4d40251
1 changed files with 0 additions and 2 deletions
|
@ -15,8 +15,6 @@ namespace rr {
|
||||||
|
|
||||||
Backref::Backref(VALUE initial) {
|
Backref::Backref(VALUE initial) {
|
||||||
allocate(initial);
|
allocate(initial);
|
||||||
this->storage = rb_funcall(Storage, _new, 1, initial);
|
|
||||||
rb_gc_register_address(&storage);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Backref::~Backref() {
|
Backref::~Backref() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue