Commit f5a19be9 by Adeel

Importer: Destroys vars before leaving the scope.

parent 2e82e70f
...@@ -38,9 +38,15 @@ extern "C" { ...@@ -38,9 +38,15 @@ extern "C" {
} }
NanDisposePersistent(ctx_w->stats); NanDisposePersistent(ctx_w->stats);
delete ctx_w->success_callback; delete ctx_w->success_callback;
delete ctx_w->error_callback; delete ctx_w->error_callback;
delete ctx_w->importer_callback; delete ctx_w->importer_callback;
delete ctx_w->file;
delete ctx_w->cookie;
uv_mutex_destroy(&ctx_w->importer_mutex);
uv_cond_destroy(&ctx_w->importer_condition_variable);
free(ctx_w); free(ctx_w);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment