WindowComponent now unsubscribes from its subscriptions when destroyed.
Created by: S4K4YUME
fixes #228 (closed)
The fix
Subscribing to an Observable
returns a Subscription
. We weren't doing anything with these and hence they could stick around for longer then expected.
Now as soon as destroyScene
is called, the WindowComponent
also unsubscribe
s from the two running subscriptions.