After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 324298 - Double free of org.gnu.gdk.Window from TextView.getWindow(TextWindowType) crashes app
Double free of org.gnu.gdk.Window from TextView.getWindow(TextWindowType) cra...
Status: RESOLVED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other All
: Normal critical
: ---
Assigned To: java-gnome bindings maintainers
java-gnome bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-16 20:44 UTC by Adam Jocksch
Modified: 2005-12-19 15:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch (855 bytes, patch)
2005-12-16 20:46 UTC, Adam Jocksch
none Details | Review

Description Adam Jocksch 2005-12-16 20:44:11 UTC
Please describe the problem:
In a situation where the user is using the gdkWindows of a TextView (say for
drawing line numbers in a margin), a double free situation occurs resulting
G_OBJECT_IS_OBJECT assertions failing within gtk.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Adam Jocksch 2005-12-16 20:46:23 UTC
Created attachment 56082 [details] [review]
patch

This fix stops the crash, but I'm unsure as to it's correctness. Nothing in the
gtk docs indicates that we don't own a reference to the returned window, yet
the symptoms of the bug seem to indicate that's the case. Will investigate
further
Comment 2 Ismael Juma 2005-12-17 17:56:12 UTC
I think it makes sense that the TextView would own the GdkWindow, even if it is
not stated in the documentation. Patch looks good from my side.
Comment 3 Adam Jocksch 2005-12-19 15:08:16 UTC
Will commit above patch to CVS HEAD.