summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xbin/net_monitor3
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 617585c..b72d3e1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- net_monitor:
+ o fix crash (#33023)
+
0.16:
- connection manager (netcenter/drakroam):
o add banner in configure dialog (#33622)
diff --git a/bin/net_monitor b/bin/net_monitor
index b9ca3de..a93fea2 100755
--- a/bin/net_monitor
+++ b/bin/net_monitor
@@ -486,6 +486,9 @@ sub draw_monitor {
defined $darea->{$intf} or return;
my $gcl = $gc_lines->{$intf};
my $pixmap = $pixmap->{$intf};
+ my $gc = $darea->{$intf}->style->white_gc;
+ # fix race on ugtk2->exit that causes a crash (#33023)
+ return 0 if !$gc;
$pixmap->draw_rectangle($darea->{$intf}->style->black_gc, 1, 0, 0, $width, $height);
my $maxr = 0;
foreach (@{$o->{stack_r}}) { $maxr = $_ if $_ > $maxr }