Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Importer: Destroys vars before leaving the scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Nov 26, 2014
1 parent 2e82e70 commit f5a19be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sass_context_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ extern "C" {
}

NanDisposePersistent(ctx_w->stats);

delete ctx_w->success_callback;
delete ctx_w->error_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);
}
Expand Down

0 comments on commit f5a19be

Please sign in to comment.