[perl-Gtk2] Correct the memory management in Gtk2::Gdk::Window->new
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk2] Correct the memory management in Gtk2::Gdk::Window->new
- Date: Tue, 23 Nov 2010 20:25:58 +0000 (UTC)
commit f460f7be83851e4ca759a4950846db39ca4c8816
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Tue Nov 23 21:20:32 2010 +0100
Correct the memory management in Gtk2::Gdk::Window->new
We don't own the returned window and so we have to take a ref. Reported
by Quentin Sculo and Kevin Ryde.
https://bugzilla.gnome.org/show_bug.cgi?id=616655
xs/GdkWindow.xs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/xs/GdkWindow.xs b/xs/GdkWindow.xs
index 756cfe7..3f9a76b 100644
--- a/xs/GdkWindow.xs
+++ b/xs/GdkWindow.xs
@@ -250,7 +250,8 @@ are a bit odd, but that's what Gtk has. You can, as for any enum,
give the full names like "GDK_INPUT_OUTPUT" if desired, for some
clarity.
=cut
-GdkWindow_noinc *
+# Note: no _noinc here, as we dot own the returned window.
+GdkWindow *
gdk_window_new (class, parent, attributes_ref)
GdkWindow_ornull *parent
SV *attributes_ref
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]