mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
fix memory leak
This commit is contained in:
parent
12734952ad
commit
767684aad3
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ namespace rubyopencv {
|
|||
void free_mat(void* ptr) {
|
||||
if (ptr) {
|
||||
cv::Mat* dataptr = (cv::Mat*)ptr;
|
||||
dataptr->release();
|
||||
delete dataptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue