Skip to content

Commit

Permalink
Mark it (#825)
Browse files Browse the repository at this point in the history
* Check mark function before calling

* Update changelog
  • Loading branch information
ohler55 committed Nov 6, 2022
1 parent 13720f6 commit df05232
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.13.23 - 2022-11-06

- Fixed issue with Oj::Parser extension regarding GC timeing.

## 3.13.22 - 2022-11-01

- Reorganized Oj::Parser code to allow for parser extensions in C.
Expand Down
8 changes: 6 additions & 2 deletions ext/oj/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,9 @@ static void parser_free(void *ptr) {
p = (ojParser)ptr;
buf_cleanup(&p->key);
buf_cleanup(&p->buf);
p->free(p);
if (NULL != p->free) {
p->free(p);
}
xfree(ptr);
}

Expand All @@ -1156,7 +1158,9 @@ static void parser_mark(void *ptr) {
if (0 != p->reader) {
rb_gc_mark(p->reader);
}
p->mark(p);
if (NULL != p->mark) {
p->mark(p);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/oj/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

module Oj
# Current version of the module.
VERSION = '3.13.22'
VERSION = '3.13.23'
end

0 comments on commit df05232

Please sign in to comment.