mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
Merge pull request #73 from yskz/fix/cvseq-segfault-by-gc
fixed segfault of CvSeq by GC
This commit is contained in:
commit
2c6f30ab25
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ VALUE
|
||||||
rb_allocate(VALUE klass)
|
rb_allocate(VALUE klass)
|
||||||
{
|
{
|
||||||
CvSeq *ptr = ALLOC(CvSeq);
|
CvSeq *ptr = ALLOC(CvSeq);
|
||||||
return Data_Wrap_Struct(klass, 0, unregister_elem_class, ptr);
|
return Data_Wrap_Struct(klass, mark_root_object, unregister_elem_class, ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
CvSeq*
|
CvSeq*
|
||||||
|
|
Loading…
Add table
Reference in a new issue