diff options
author | Milan Crha <mcrha@redhat.com> | 2011-10-20 16:16:45 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-10-20 16:16:45 +0800 |
commit | 31babe7961a6ef93419970a6d10c8843b671b466 (patch) | |
tree | d488d393207adb85aa5d9c8dcc83726df93f34ca /widgets | |
parent | fbce8fba0c29ccd40e8952600532c75d6a9df476 (diff) | |
download | gsoc2013-evolution-31babe7961a6ef93419970a6d10c8843b671b466.tar gsoc2013-evolution-31babe7961a6ef93419970a6d10c8843b671b466.tar.gz gsoc2013-evolution-31babe7961a6ef93419970a6d10c8843b671b466.tar.bz2 gsoc2013-evolution-31babe7961a6ef93419970a6d10c8843b671b466.tar.lz gsoc2013-evolution-31babe7961a6ef93419970a6d10c8843b671b466.tar.xz gsoc2013-evolution-31babe7961a6ef93419970a6d10c8843b671b466.tar.zst gsoc2013-evolution-31babe7961a6ef93419970a6d10c8843b671b466.zip |
Bug #527614 - Valgrind shows a nice amount of lost memory
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/menus/gal-view-etable.c | 1 | ||||
-rw-r--r-- | widgets/misc/e-account-tree-view.c | 3 | ||||
-rw-r--r-- | widgets/misc/e-signature-tree-view.c | 2 | ||||
-rw-r--r-- | widgets/table/e-cell-hbox.c | 2 | ||||
-rw-r--r-- | widgets/table/e-cell-vbox.c | 2 |
5 files changed, 8 insertions, 2 deletions
diff --git a/widgets/menus/gal-view-etable.c b/widgets/menus/gal-view-etable.c index c1fa5daf8b..a16c72bcc0 100644 --- a/widgets/menus/gal-view-etable.c +++ b/widgets/menus/gal-view-etable.c @@ -134,6 +134,7 @@ gal_view_etable_clone (GalView *view) new = g_object_new (GAL_TYPE_VIEW_ETABLE, NULL); new->spec = gve->spec; new->title = g_strdup (gve->title); + g_object_unref (new->state); new->state = e_table_state_duplicate (gve->state); g_object_ref (new->spec); diff --git a/widgets/misc/e-account-tree-view.c b/widgets/misc/e-account-tree-view.c index 7eae4e14aa..bd21668e2f 100644 --- a/widgets/misc/e-account-tree-view.c +++ b/widgets/misc/e-account-tree-view.c @@ -301,6 +301,9 @@ account_tree_view_refresh_timeout_cb (gpointer ptree_view) COLUMN_NAME, _("Search Folders"), COLUMN_PROTOCOL, NULL, -1); + + g_list_free (list); + skip: /* Restore the previously selected account. */ selected = e_account_tree_view_get_selected_type (tree_view); diff --git a/widgets/misc/e-signature-tree-view.c b/widgets/misc/e-signature-tree-view.c index 914b03ec13..62a923d8b9 100644 --- a/widgets/misc/e-signature-tree-view.c +++ b/widgets/misc/e-signature-tree-view.c @@ -115,6 +115,8 @@ signature_tree_view_refresh_cb (ESignatureList *signature_list, gtk_tree_path_free (path); } + g_list_free (list); + skip: /* Restore the previously selected signature. */ signature = e_signature_tree_view_get_selected (tree_view); 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); } |