diff options
author | Christian Dywan <christian@imendio.com> | 2009-01-09 13:47:02 +0000 |
---|---|---|
committer | Christian Dywan <cdywan@src.gnome.org> | 2009-01-09 13:47:02 +0000 |
commit | 27d8d8ea2bb815df0733f5d4d57d93542e2c160a (patch) | |
tree | 7f950750dcd54af5239e4a483bae97dee1984a3b /gdk | |
parent | 7363a610791b9c7b1197d261302a3eed949765ab (diff) | |
download | gtk+-27d8d8ea2bb815df0733f5d4d57d93542e2c160a.tar.gz |
Fail in gdk_window_new if _gdk_window_new failed
2009-01-09 Christian Dywan <christian@imendio.com>
Fail in gdk_window_new if _gdk_window_new failed
* gdk/gdkwindow.c (gdk_window_new): Add g_return_val_if_fail
in case _gdk_window_new is NULL. Approved by Tim Janik
svn path=/trunk/; revision=22082
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkwindow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index a0f31f45cd..40dc2b12ed 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -373,6 +373,7 @@ gdk_window_new (GdkWindow *parent, g_return_val_if_fail (attributes != NULL, NULL); window = _gdk_window_new (parent, attributes, attributes_mask); + g_return_val_if_fail (window != NULL, window); /* Inherit redirection from parent */ if (parent != NULL) |