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

Commit f7970cee authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "Fix storaged memory leak"

parents ab80f549 857a63eb
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;