Commit ccc9f0a4 by Aaron Leung

Adding a function to free contexts.

parent df4d989b
...@@ -11,5 +11,11 @@ sass_context *make_sass_context_from_file(char *path) { ...@@ -11,5 +11,11 @@ sass_context *make_sass_context_from_file(char *path) {
} }
ctx->path = path; ctx->path = path;
ctx->src = sass_read_file(path); ctx->src = sass_read_file(path);
ctx->pos = src;
return ctx; return ctx;
} }
void *free_sass_context(sass_context *ctx) {
free(ctx->src);
free(ctx);
}
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