Fixed function name

This commit is contained in:
Max Ehrlich 2015-07-23 11:16:27 -04:00
parent 1eeae7879c
commit 3655349e83

View File

@ -101,7 +101,7 @@ Matrix::Init(Handle<Object> target) {
NODE_SET_PROTOTYPE_METHOD(ctor, "setWithMask", SetWithMask); NODE_SET_PROTOTYPE_METHOD(ctor, "setWithMask", SetWithMask);
NODE_SET_PROTOTYPE_METHOD(ctor, "meanWithMask", MeanWithMask); NODE_SET_PROTOTYPE_METHOD(ctor, "meanWithMask", MeanWithMask);
NODE_SET_PROTOTYPE_METHOD(ctor, "shift", Shift); NODE_SET_PROTOTYPE_METHOD(ctor, "shift", Shift);
NODE_SET_PROTOTYPE_METHOD(ctor, "release", Dispose); NODE_SET_PROTOTYPE_METHOD(ctor, "release", Release);
target->Set(NanNew("Matrix"), ctor->GetFunction()); target->Set(NanNew("Matrix"), ctor->GetFunction());
}; };
@ -2257,9 +2257,11 @@ NAN_METHOD(Matrix::Shift){
NAN_METHOD(Matrix::Release) NAN_METHOD(Matrix::Release)
{ {
SETUP_FUNCTION(Matrix) NanScope();
mat.release(); Matrix *self = ObjectWrap::Unwrap<Matrix>(args.This());
self->mat.release();
NanReturnUndefined(); NanReturnUndefined();
} }