Skip to content

Commit 16f76e2

Browse files
authored
Fix memory leak in Parser::parse_media_query (#3059)
1 parent bf6ccae commit 16f76e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ namespace Sass {
22422242

22432243
while (lex_css < kwd_and >()) media_query->append(parse_media_expression());
22442244
if (lex < identifier_schema >()) {
2245-
String_Schema* schema = SASS_MEMORY_NEW(String_Schema, pstate);
2245+
String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
22462246
if (media_query->media_type()) {
22472247
schema->append(media_query->media_type());
22482248
schema->append(SASS_MEMORY_NEW(String_Constant, pstate, " "));

0 commit comments

Comments
 (0)