Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit b3e7210

Browse files
committed
Implementing sass_free_folder_context() function.
Although sass_interface.h header contains the prototype of void sass_free_folder_context(struct sass_folder_context *) function, sass_interface.cpp hadn't implemented it. This had caused link errors.
1 parent b3e8d77 commit b3e7210

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sass_interface.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ extern "C" {
3737
sass_folder_context* sass_new_folder_context()
3838
{ return (sass_folder_context*) calloc(1, sizeof(sass_folder_context)); }
3939

40+
void sass_free_folder_context(sass_folder_context* ctx)
41+
{
42+
if (ctx->output_path) free(ctx->output_path);
43+
if (ctx->error_message) free(ctx->error_message);
44+
45+
free(ctx);
46+
}
47+
4048
static char* process_document(Sass::Document& doc, int style)
4149
{
4250
using namespace Sass;

0 commit comments

Comments
 (0)