Solved dialogs memory leaks