Skip to content

Commit

Permalink
Release annotations of removed classes
Browse files Browse the repository at this point in the history
Reviewed By: ssj933

Differential Revision: D51837578

fbshipit-source-id: 3e751e5d604f561d4e38e10d072637b108c773eb
  • Loading branch information
Nikolai Tillmann authored and facebook-github-bot committed Dec 5, 2023
1 parent dba8805 commit 5a7e106
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libredex/Reachability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2146,6 +2146,10 @@ void sweep(DexStoresVector& stores,
}
cls->get_dmethods().clear();
cls->get_vmethods().clear();
auto anno_set = cls->get_anno_set();
if (anno_set) {
anno_set->get_annotations().clear();
}
return;
}
sweep_if_unmarked(reachables, DexField::delete_field_DO_NOT_USE,
Expand Down

0 comments on commit 5a7e106

Please sign in to comment.