aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-03-25 21:57:01 +0800
committerMilan Crha <mcrha@redhat.com>2013-03-25 21:57:01 +0800
commit4b03f11c4c795e14d4041bb79048521f12891ee4 (patch)
tree4287b0f6a5a629cb2fcd8e8e6b6bc6c80a36b219 /e-util
parent1c35d94851adfab4340464376118eea4d964fc8d (diff)
downloadgsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar
gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar.gz
gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar.bz2
gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar.lz
gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar.xz
gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar.zst
gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.zip
Bug #696173 - Various memory leaks
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-action-combo-box.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/e-util/e-action-combo-box.c b/e-util/e-action-combo-box.c
index 0b7a31c90a..5d114d21d7 100644
--- a/e-util/e-action-combo-box.c
+++ b/e-util/e-action-combo-box.c
@@ -105,12 +105,12 @@ action_combo_box_render_pixbuf (GtkCellLayout *layout,
gboolean visible;
gint width;
- gtk_tree_model_get (model, iter, COLUMN_ACTION, &action, -1);
-
/* Do any of the actions have an icon? */
if (!combo_box->priv->group_has_icons)
return;
+ gtk_tree_model_get (model, iter, COLUMN_ACTION, &action, -1);
+
/* A NULL action means the row is a separator. */
if (action == NULL)
return;
@@ -151,6 +151,7 @@ action_combo_box_render_pixbuf (GtkCellLayout *layout,
"width", width,
NULL);
+ g_object_unref (action);
g_free (icon_name);
g_free (stock_id);
}
@@ -198,6 +199,7 @@ action_combo_box_render_text (GtkCellLayout *layout,
"xpad", xpad,
NULL);
+ g_object_unref (action);
g_free (label);
}
@@ -279,6 +281,7 @@ action_combo_box_update_model (EActionComboBox *combo_box)
COLUMN_SORT, GTK_SORT_ASCENDING);
gtk_combo_box_set_model (
GTK_COMBO_BOX (combo_box), GTK_TREE_MODEL (list_store));
+ g_object_unref (list_store);
action_combo_box_action_changed_cb (
combo_box->priv->action,
@@ -401,6 +404,7 @@ action_combo_box_changed (GtkComboBox *combo_box)
gtk_tree_model_get (model, &iter, COLUMN_ACTION, &action, -1);
g_object_get (action, "value", &value, NULL);
gtk_radio_action_set_current_value (action, value);
+ g_object_unref (action);
}
static void