Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
RerwriteDriver: Clear srcset_collection when failing InitiateRewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
oschaaf committed Dec 6, 2017
1 parent 74e6f6b commit 7b7b706
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/instaweb/rewriter/rewrite_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2873,6 +2873,7 @@ bool RewriteDriver::InitiateRewrite(RewriteContext* rewrite_context) {
// us with a partially constructed slot-graph.
if (!can_rewrite_resources_) {
if (rewrites_.empty()) {
srcset_collections_.clear();
rewrite_context->DetachSlots();
delete rewrite_context;
return false;
Expand Down

0 comments on commit 7b7b706

Please sign in to comment.