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 561686 - Don't free prov->gboxed for "has_parent" Boxed
Don't free prov->gboxed for "has_parent" Boxed
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2008-11-20 14:53 UTC by Owen Taylor
Modified: 2008-11-20 14:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't free prov->gboxed for "has_parent" Boxed (968 bytes, patch)
2008-11-20 14:53 UTC, Owen Taylor
none Details | Review

Description Owen Taylor 2008-11-20 14:53:24 UTC
For a Boxed that represents a nested structure, when we free the Boxed,
we shouldn't free the memory that priv->gboxed points to - it's just
a pointer inside the parent object's memory.
Comment 1 Owen Taylor 2008-11-20 14:53:27 UTC
Created attachment 123116 [details] [review]
Don't free prov->gboxed for "has_parent" Boxed
Comment 2 Owen Taylor 2008-11-20 14:59:11 UTC
Tested by Colin to fix a crash that he was seeing. Committted to svn.