Skip to content

Commit 681bcff

Browse files
committed
always dispose data context
1 parent 8b6f415 commit 681bcff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sassc/engine.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def render
5454
@dependencies = Native.context_get_included_files(context)
5555
@source_map = Native.context_get_source_map_string(context)
5656

57-
Native.delete_data_context(data_context)
58-
5957
css.force_encoding(@template.encoding)
6058

6159
return css unless quiet?
60+
ensure
61+
Native.delete_data_context(data_context) if data_context
6262
end
6363

6464
def dependencies

0 commit comments

Comments
 (0)