mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
fix stupid typo
This commit is contained in:
parent
f2c05255a0
commit
0b6b1f42cc
@ -1900,13 +1900,14 @@ public:
|
|||||||
fy(fy),
|
fy(fy),
|
||||||
interpolation(interpolation),
|
interpolation(interpolation),
|
||||||
success(0),
|
success(0),
|
||||||
dest(null){
|
dest(NULL){
|
||||||
}
|
}
|
||||||
|
|
||||||
~ResizeASyncWorker() {
|
~ResizeASyncWorker() {
|
||||||
// don't leave this if it was allocated
|
// don't leave this if it was allocated
|
||||||
// could happen if NaN does not call HandleSuccess?
|
// could happen if NaN does not call HandleSuccess?
|
||||||
delete dest;
|
delete dest;
|
||||||
|
dest = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Execute() {
|
void Execute() {
|
||||||
@ -1928,7 +1929,7 @@ public:
|
|||||||
Matrix *img = Nan::ObjectWrap::Unwrap<Matrix>(im_to_return);
|
Matrix *img = Nan::ObjectWrap::Unwrap<Matrix>(im_to_return);
|
||||||
img->mat = dest->mat;
|
img->mat = dest->mat;
|
||||||
delete dest;
|
delete dest;
|
||||||
dest = null;
|
dest = NULL;
|
||||||
|
|
||||||
Local<Value> argv[] = {
|
Local<Value> argv[] = {
|
||||||
Nan::Null(), // err
|
Nan::Null(), // err
|
||||||
@ -1942,7 +1943,7 @@ public:
|
|||||||
}
|
}
|
||||||
} catch (...){
|
} catch (...){
|
||||||
delete dest;
|
delete dest;
|
||||||
dest = null;
|
dest = NULL;
|
||||||
Local<Value> argv[] = {
|
Local<Value> argv[] = {
|
||||||
Nan::New("C++ exception wrapping response").ToLocalChecked(), // err
|
Nan::New("C++ exception wrapping response").ToLocalChecked(), // err
|
||||||
Nan::Null() // result
|
Nan::Null() // result
|
||||||
@ -1956,7 +1957,7 @@ public:
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
delete dest;
|
delete dest;
|
||||||
dest = null;
|
dest = NULL;
|
||||||
|
|
||||||
Local<Value> argv[] = {
|
Local<Value> argv[] = {
|
||||||
Nan::New("C++ exception").ToLocalChecked(), // err
|
Nan::New("C++ exception").ToLocalChecked(), // err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user