mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
fix issue #22
Use Ruby's memory allocation function xmalloc() instead of OpenCV's cvAlloc() to run GC when running out of memory
This commit is contained in:
parent
20ba28b3bf
commit
21adfe1035
3 changed files with 67 additions and 61 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <ruby.h>
|
||||
#include "opencv2/core/core_c.h"
|
||||
#include "opencv2/core/core.hpp"
|
||||
#include "opencv2/core/internal.hpp"
|
||||
#include "opencv2/imgproc/imgproc_c.h"
|
||||
#include "opencv2/imgproc/imgproc.hpp"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue