Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
ccc9f0a4
Commit
ccc9f0a4
authored
Feb 17, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a function to free contexts.
parent
df4d989b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
context.c
src/context.c
+7
-2
No files found.
src/context.c
View file @
ccc9f0a4
...
@@ -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
;
}
}
\ No newline at end of file
void
*
free_sass_context
(
sass_context
*
ctx
)
{
free
(
ctx
->
src
);
free
(
ctx
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment