[polari/wip/fmuellner/invalid-object-access: 1/8] mainWindow: Unset :active-room on destroy



commit 1441001f134819571daa7f8c0b3818ebc7341a78
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Dec 9 18:06:04 2017 +0100

    mainWindow: Unset :active-room on destroy
    
    In case the :active-room property is non-%NULL, there's a number of
    signals we connect to. We need to disconnect those to avoid warnings
    with recent gjs, and the easiest way to do that is to unset the
    property on destroy.

 src/mainWindow.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 38bdf4d..f12fd17 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -242,6 +242,8 @@ var MainWindow = GObject.registerClass({
             this._settings.set_value('last-selected-channel', serializedChannel);
         else
             this._settings.reset('last-selected-channel');
+
+        this.active_room = null;
     }
 
     _touchFile(file) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]