Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65dbec91 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix use-after-free in ResourceManagerService::removeResource"

parents aa24ee6f 102b3e3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -511,8 +511,8 @@ Status ResourceManagerService::removeResource(
                resource.value -= res.value;
            } else {
                onLastRemoved(res, info);
                info.resources.erase(resType);
                actualRemoved.value = resource.value;
                info.resources.erase(resType);
            }

            // Add it to the list of removed resources for observers.