[gnome-shell/gnome-3-28] extensionSystem: Unset stylesheet file reference when unloaded



commit 176aaa4a97a6ba34fcea2a08373f461868e21e3b
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Aug 3 16:19:14 2018 +0000

    extensionSystem: Unset stylesheet file reference when unloaded
    
    We must remove the GFile reference from the representing object when an
    extension has been unloaded as this won't be used anymore later (e.g. as cached
    ref).
    
    
    (cherry picked from commit 72f5802be93648429c6d9d586c427c8cfd9ccde2)

 js/ui/extensionSystem.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index 6611b5a63..a7a3d2014 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -76,6 +76,7 @@ function disableExtension(uuid) {
     if (extension.stylesheet) {
         let theme = St.ThemeContext.get_for_stage(global.stage).get_theme();
         theme.unload_stylesheet(extension.stylesheet);
+        delete extension.stylesheet;
     }
 
     try {


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