From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2010-04-23 14:59:39
|
https://bugzilla.gnome.org/show_bug.cgi?id=616655 gnome-perl | Gtk2 | unspecified Summary: Gtk2::Gdk::Window destruction doesn't work correctly Classification: Bindings Product: gnome-perl Version: unspecified OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: Gtk2 AssignedTo: gtk...@li... ReportedBy: squ...@fr... QAContact: gtk...@li... GNOME target: --- GNOME version: --- Created an attachment (id=159437) --> (https://bugzilla.gnome.org/attachment.cgi?id=159437) test case When creating a child Gtk2::Gdk::Window, I get an error when closing the program. Either "Gdk-WARNING **: losing last reference to undestroyed window" if I didn't call destroy on the child gdkwindow, or "Attempt to free unreferenced scalar: SV 0x9a8ca78, Perl interpreter: 0x9a6b008." if I called destroy on the child gdkwindow. (see attached test case) Looking further, creating and destroying child gdkwindows continuously leaks some memory, and doing the same with toplevel gdkwindows ends up with an error. Replacing "GdkWindow_noinc * gdk_window_new" by "GdkWindow * gdk_window_new" in xs/GdkWindow.xs seems to fix it, though I don't know enough about gtk and the bindings to be sure it's the correct fix. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |