SystemUI: fix memory leaks