We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1155e4 + 47797f8 commit 22d5142Copy full SHA for 22d5142
src/expand.cpp
@@ -185,7 +185,11 @@ namespace Sass {
185
Statement* Expand::operator()(Media_Block* m)
186
{
187
Expression* mq = m->media_queries()->perform(&eval);
188
- mq = Parser::from_c_str(mq->to_string(ctx.c_options).c_str(), ctx, mq->pstate()).parse_media_queries();
+ std::string str_mq(mq->to_string(ctx.c_options));
189
+ char* str = sass_strdup(str_mq.c_str());
190
+ ctx.strings.push_back(str);
191
+ Parser p(Parser::from_c_str(str, ctx, mq->pstate()));
192
+ mq = p.parse_media_queries();
193
Media_Block* mm = SASS_MEMORY_NEW(ctx.mem, Media_Block,
194
m->pstate(),
195
static_cast<List*>(mq->perform(&eval)),
0 commit comments