summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xgurpmi22
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b668b8f1..cf1ef0e7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- workaround a segfault in gurpmi (mga#21167)
+
Version 8.109 - 5 June 2017
- translation updates
diff --git a/gurpmi2 b/gurpmi2
index 50726071..ca8d87f8 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -373,6 +373,8 @@ return_with_exit_code:
# Show postponed message before exiting
$urpm->{error}->($urpm::postponed_msg) if $urpm::postponed_code != 0;
+ # Workaround a segfault by explicitly deleting the window (mga#21167)
+ undef $mainw;
exit $exit_code;
}