summaryrefslogtreecommitdiffstats
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
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).
-rw-r--r--NEWS2
-rwxr-xr-xcontrol-center2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e9cd2ad8..4c014ad8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- Workaround a segfault on exit (mga#26944)
+
Version 13.25 - 11 January 2021, by Donald Stewart
- Artwork for Mga8
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);
}