Commit db2f82d1 by Adeel

Code: Uncomments free statements to avoid mem leak

parent d11bf706
...@@ -31,7 +31,7 @@ extern "C" { ...@@ -31,7 +31,7 @@ extern "C" {
void sass_free_context_wrapper(sass_context_wrapper* ctx_w) { void sass_free_context_wrapper(sass_context_wrapper* ctx_w) {
if (ctx_w->dctx) { if (ctx_w->dctx) {
// sass_delete_data_context(ctx_w->dctx); sass_delete_data_context(ctx_w->dctx);
} }
else if (ctx_w->fctx) { else if (ctx_w->fctx) {
sass_delete_file_context(ctx_w->fctx); sass_delete_file_context(ctx_w->fctx);
...@@ -48,6 +48,6 @@ extern "C" { ...@@ -48,6 +48,6 @@ extern "C" {
uv_mutex_destroy(&ctx_w->importer_mutex); uv_mutex_destroy(&ctx_w->importer_mutex);
uv_cond_destroy(&ctx_w->importer_condition_variable); 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