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 72f5802be9)
This commit is contained in:
Marco Trevisan (Treviño) 2018-08-03 16:19:14 +00:00 committed by Marco Trevisan
parent 5ae5811155
commit 176aaa4a97

View File

@ -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 {