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 572130 - memory leaks
memory leaks
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2009-02-17 11:30 UTC by Tommi Komulainen
Modified: 2009-02-18 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix memory leaks (1.81 KB, patch)
2009-02-17 11:30 UTC, Tommi Komulainen
committed Details | Review
gi: test for G_TYPE_VALUE before G_TYPE_BOXED when deallocating (1.47 KB, patch)
2009-02-17 17:27 UTC, Tommi Komulainen
committed Details | Review

Description Tommi Komulainen 2009-02-17 11:30:20 UTC
* GValue as in-parameter
* binary data test
Comment 1 Tommi Komulainen 2009-02-17 11:30:40 UTC
Created attachment 128896 [details] [review]
fix memory leaks
Comment 2 Johan Bilien 2009-02-17 11:34:43 UTC
Yes
Comment 3 Tommi Komulainen 2009-02-17 14:43:33 UTC
Fixed as of e082b44c58f0626396b7a3f2541d88d5008a79a5
Comment 4 Tommi Komulainen 2009-02-17 17:27:21 UTC
Created attachment 128910 [details] [review]
gi: test for G_TYPE_VALUE before G_TYPE_BOXED when deallocating

(oddly valgrind-check missed it)


gi: test for G_TYPE_VALUE before G_TYPE_BOXED when deallocating

G_TYPE_VALUE is-a G_TYPE_BOXED but we allocate it differently so test
for the special case first to deallocate properly and avoid invalid free()
Comment 5 Tommi Komulainen 2009-02-18 11:52:27 UTC
Comment on attachment 128910 [details] [review]
gi: test for G_TYPE_VALUE before G_TYPE_BOXED when deallocating

Committed as 034fcd014122ea923cb5c59c1cef3a9342b49d8f