From 31babe7961a6ef93419970a6d10c8843b671b466 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 20 Oct 2011 10:16:45 +0200 Subject: Bug #527614 - Valgrind shows a nice amount of lost memory --- widgets/table/e-cell-hbox.c | 2 +- widgets/table/e-cell-vbox.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-cell-hbox.c b/widgets/table/e-cell-hbox.c index a8eb4ccb76..98bbf897cd 100644 --- a/widgets/table/e-cell-hbox.c +++ b/widgets/table/e-cell-hbox.c @@ -350,5 +350,5 @@ e_cell_hbox_append (ECellHbox *hbox, hbox->def_size_cols[hbox->subcell_count - 1] = size; if (subcell) - g_object_ref (subcell); + g_object_ref_sink (subcell); } diff --git a/widgets/table/e-cell-vbox.c b/widgets/table/e-cell-vbox.c index 9830a06aff..bce40a8a2e 100644 --- a/widgets/table/e-cell-vbox.c +++ b/widgets/table/e-cell-vbox.c @@ -338,5 +338,5 @@ e_cell_vbox_append (ECellVbox *vbox, vbox->model_cols[vbox->subcell_count - 1] = model_col; if (subcell) - g_object_ref (subcell); + g_object_ref_sink (subcell); } -- cgit