Fix memory leaks related to the debug window.
speedup room deletion
Merge branch 'release_30' into release_31

speedup room deletion.
Make mpConsole in Host into a QPointer.

QPointer is set to null when the thing it points to is deleted.
Don't access mpConsole if it is null.