From eca9be85c153ca16ee8bb4340c6ec092ef1872c8 Mon Sep 17 00:00:00 2001 From: John Cao Date: Wed, 10 Sep 2014 23:44:57 +0800 Subject: [PATCH] Added a delete for the matrix - Issue 101 --- src/VideoCaptureWrap.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/VideoCaptureWrap.cc b/src/VideoCaptureWrap.cc index fb8a796..904a70e 100755 --- a/src/VideoCaptureWrap.cc +++ b/src/VideoCaptureWrap.cc @@ -178,6 +178,7 @@ void AfterAsyncRead(uv_work_t *req) { baton->cb->Call(Context::GetCurrent()->Global(), 2, argv); baton->cb.Dispose(); + delete baton->im; delete baton; }