summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi22
1 files changed, 2 insertions, 0 deletions
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;
}