summaryrefslogtreecommitdiffstats
path: root/control-center
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2021-02-01 20:19:41 +0000
committerPascal Terjan <pterjan@mageia.org>2021-02-01 20:19:41 +0000
commitda9dd0e11ae6c11740c0909d1c17272706808987 (patch)
treee7d824fb0ec57c8c26cfd1d5ea82524d7b0b7ed6 /control-center
parentdab58639b535fea4f8905cef190942131d6cb0fa (diff)
downloadcontrol-center-da9dd0e11ae6c11740c0909d1c17272706808987.tar
control-center-da9dd0e11ae6c11740c0909d1c17272706808987.tar.gz
control-center-da9dd0e11ae6c11740c0909d1c17272706808987.tar.bz2
control-center-da9dd0e11ae6c11740c0909d1c17272706808987.tar.xz
control-center-da9dd0e11ae6c11740c0909d1c17272706808987.zip
Workaround a segfault on exit
There seems to be some race causing a segfault during cleanup on exit. Prevent it by destroying the window manually earlier (mga#26944).
Diffstat (limited to 'control-center')
-rwxr-xr-xcontrol-center2
1 files changed, 2 insertions, 0 deletions
diff --git a/control-center b/control-center
index fe20eb38..60ecafc8 100755
--- a/control-center
+++ b/control-center
@@ -1292,6 +1292,8 @@ sub quit_global() {
WIDTH => $x,
});
gtkset_mousecursor_normal();
+ # Workaround a segfault on exit by manually destroying the window before exit()
+ $window_global->destroy;
standalone::exit(0);
}