detatch resize handler on destroy

This commit is contained in:
jderose9
2017-11-02 22:37:24 -04:00
parent 4a54f1896c
commit 0fc2325dc8

View File

@@ -822,6 +822,13 @@ var thumbnailPreview = new Lang.Class({
_onDestroy: function() {
this.window.disconnect(this._titleNotifyId);
this._titleNotifyId = 0;
if(this._resizeId) {
let mutterWindow = this.window.get_compositor_private();
if (mutterWindow) {
mutterWindow.meta_window.disconnect(this._resizeId);
this._resizeId = 0;
}
}
}
});