[gtk+/client-side-windows: 264/284] Free region also if its empty (we're taking ownership now)
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 264/284] Free region also if its empty (we're taking ownership now)
- Date: Thu, 2 Apr 2009 14:22:44 -0400 (EDT)
commit f0fb3f450ff6adb0f63a2bdbfee27d2a8eda940e
Author: Alexander Larsson <alexl redhat com>
Date: Mon Feb 9 10:35:19 2009 +0100
Free region also if its empty (we're taking ownership now)
---
gdk/gdkwindow.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 664a5bb..8d02dc1 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2558,7 +2558,10 @@ move_region_on_impl (GdkWindowObject *private,
if ((dx == 0 && dy == 0) ||
gdk_region_empty (region))
- return;
+ {
+ gdk_region_destroy (region);
+ return;
+ }
impl_window = gdk_window_get_impl_window (private);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]