[evolution-patches] Patch for leaks in e-util.c
- From: Kjartan Maraas <kmaraas broadpark no>
- To: evolution-patches <evolution-patches gnome org>
- Subject: [evolution-patches] Patch for leaks in e-util.c
- Date: Wed, 16 Aug 2006 15:45:39 +0200
Found by valgrind:
==24325== 57,640 bytes in 8,162 blocks are definitely lost in loss
record 261 of 275
==24325== at 0x40053D0: malloc (vg_replace_malloc.c:149)
==24325== by 0x881785: g_malloc (gmem.c:131)
==24325== by 0x894C78: g_strdup (gstrfuncs.c:91)
==24325== by 0x6A1D819: set_string (gconf-value.c:55)
==24325== by 0x6A1EA4F: gconf_value_copy (gconf-value.c:731)
==24325== by 0x6A27971: gconf_client_get_full (gconf-client.c:1297)
==24325== by 0x6A283CD: gconf_client_get_string (gconf-client.c:1485)
==24325== by 0x4CC16F72: get_font_options (e-util.c:1151)
==24325== by 0x4CA12A8D: build_layout (e-cell-text.c:594)
==24325== by 0x4CA13D79: generate_layout (e-cell-text.c:669)
==24325== by 0x4CA16BD2: ect_draw (e-cell-text.c:786)
==24325== by 0x4CA0C4B2: e_cell_draw (e-cell.c:277)
==24325== by 0x4CA3497E: eti_draw (e-table-item.c:2001)
==24325== by 0x4C6FE025: gnome_canvas_group_draw
(gnome-canvas.c:1680)
==24325== by 0x4C7027B9: gnome_canvas_expose (gnome-canvas.c:2992)
==24325== by 0x4D18288F: _gtk_marshal_BOOLEAN__BOXED
(gtkmarshalers.c:83)
==24325== by 0x9146F8: g_type_class_meta_marshal (gclosure.c:567)
==24325== by 0x915F0A: g_closure_invoke (gclosure.c:490)
==24325== by 0x9273C2: signal_emit_unlocked_R (gsignal.c:2476)
==24325== by 0x928036: g_signal_emit_valist (gsignal.c:2207)
==24325== by 0x928428: g_signal_emit (gsignal.c:2241)
==24325== by 0x4D295AE7: gtk_widget_event_internal (gtkwidget.c:3901)
==24325== by 0x4C6FC90F: do_update (gnome-canvas.c:3104)
==24325== by 0x4C6FD61F: idle_handler (gnome-canvas.c:3184)
==24325== by 0x8785E0: g_idle_dispatch (gmain.c:3924)
==24325== by 0x87A341: g_main_context_dispatch (gmain.c:2043)
==24325== by 0x87D31E: g_main_context_iterate (gmain.c:2675)
==24325== by 0x87D6C8: g_main_loop_run (gmain.c:2879)
Cheers
Kjartan
Index: e-util.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-util.c,v
retrieving revision 1.75
diff -u -p -r1.75 e-util.c
--- e-util.c 22 Jul 2006 13:04:55 -0000 1.75
+++ e-util.c 16 Aug 2006 13:13:48 -0000
@@ -1180,6 +1180,9 @@ get_font_options ()
else
cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_DEFAULT);
}
+ g_free (antialiasing);
+ g_free (hinting);
+ g_free (subpixel_order);
g_object_unref (gconf);
return font_options;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]