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 142669 - Plenty o' leaks
Plenty o' leaks
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-17 15:33 UTC by Morten Welinder
Modified: 2005-06-18 21:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
List o' leaks (111.02 KB, text/plain)
2004-05-17 15:34 UTC, Morten Welinder
Details

Description Morten Welinder 2004-05-17 15:33:03 UTC
This is from random playing around.  Dia leaks quite a bit.
(List coming up)
Comment 1 Morten Welinder 2004-05-17 15:34:04 UTC
Created attachment 27780 [details]
List o' leaks

A few of these are the fault of orbit.
Comment 2 Lars Clausen 2004-06-07 13:15:04 UTC
Summarizing the leaks:

Fixed:
persistence_save_list never freed the string of a GString, fixed.
edit_delete_callback alloced a list that didn't get copied, fixed.
dia_object_defaults_save used NULL for key free function, fixed.
recent_file_menuitem_create does string manip, uncertainty about allocation,
fixed but needs testing.
parent_list_affected_hierarchy allocs a hash table, fixed.

Not yet fixed:
dia_toggle_button_new_with_images allocs two images that are not freed.  Does
unref, but maybe should sink rather than ref?
object_load_props gets a prop list back, when freed the font_prop isn't freed?
diagram_tree_add copies a glist into g_list_concat, the result is freed, though.
dia_font_scaled_string_width calls pango, and something arabic is never freed. 
I believe we have another outstanding bug about this.
gtk_init stuff is not our fault.
Comment 3 Lars Clausen 2004-06-07 14:02:03 UTC
dia_toggle_button_new_with_images was probably that buttons not clicked didn't
have one of the images sunk, now sinking.
Comment 4 Hans Breuer 2005-06-18 21:54:54 UTC
Sure there are leaks left, but these appear to be fixed now.
dia_toggle_button_new_with_images is gone

2005-06-18  Hans Breuer  <hans@breuer.org>

	[plugged remaining leaks from bug #142669]
	* lib/prop_attr.c(fontprop_free) : not only unref the font
	but free the property itself, too. 
	* app/diagram_tree.c(create_diagram_children): remember the
	original list start to not only free the last element 

	* lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
	but not used. Here it meant a potentially huge leak.