[gtk+/client-side-windows: 70/284] Don't destroy NULL region
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 70/284] Don't destroy NULL region
- Date: Thu, 2 Apr 2009 14:05:36 -0400 (EDT)
commit acf1954f122fef6654d66dd32a181a39440cd4c5
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 18 20:18:27 2008 +0100
Don't destroy NULL region
---
gdk/gdkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index ca5d30b..227d8b6 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6311,7 +6311,8 @@ gdk_window_shape_combine_mask (GdkWindow *window,
region,
x, y);
- gdk_region_destroy (region);
+ if (region)
+ gdk_region_destroy (region);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]