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

Commit 4c03b477 authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "Fix storaged memory leak"

am: f7970cee

Change-Id: Ia51fe075a343d75d12f6bda3d996bf999de5530f
parents d83a360b f7970cee
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -164,9 +164,11 @@ storaged_t::storaged_t(void) {
}

void storaged_t::add_user_ce(userid_t user_id) {
    if (!proto_loaded[user_id]) {
        load_proto(user_id);
        proto_loaded[user_id] = true;
    }
}

void storaged_t::remove_user_ce(userid_t user_id) {
    proto_loaded[user_id] = false;