Skip to content

Commit

Permalink
Remove out of scope continue op
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Dec 20, 2014
1 parent 1b72808 commit 63015f4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ namespace Sass {
sass_import_get_path(current),
cookie);
if (includes) {
struct Sass_Import** list = includes;
while (*includes) {
struct Sass_Import* include = *includes;
const char *file = sass_import_get_path(include);
Expand All @@ -192,13 +193,11 @@ namespace Sass {
}
++includes;
}
// go for next parse loop
// deallocate returned memory
sass_delete_import_list(list);
// parse next import
continue;
}
// deallocate returned memory
sass_delete_import_list(includes);
// custom importer returned nothing
// means we should use default loader
}

add_single_file(imp, import_path);
Expand Down

0 comments on commit 63015f4

Please sign in to comment.