Free pointer with delete, since created with new

pull/22966/head
Ryan 2009-06-10 15:24:14 +02:00
parent 2641582399
commit 0d780fe6b8
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ do { \
TryCatch try_catch; \ TryCatch try_catch; \
(*callback)->Call(Context::GetCurrent()->Global(), argc, argv); \ (*callback)->Call(Context::GetCurrent()->Global(), argc, argv); \
if(try_catch.HasCaught()) \ if(try_catch.HasCaught()) \
node::FatalException(try_catch); \ node::FatalException(try_catch); \
free(callback); \ delete callback; \
} \ } \
} while(0) } while(0)