aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-15 02:15:36 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:35 +0800
commita4e2599f950cd2379a18a4c39cd27f87f090d492 (patch)
treefb1e71901c4824a0666f40d02c58a3ec72c9033c /e-util
parentecbb0bce4a854e7b617566f43a0b97f85bc63217 (diff)
downloadgsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.gz
gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.zst
gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.zip
Fix few memory leaks
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-activity.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/e-util/e-activity.c b/e-util/e-activity.c
index 74d0eeda26..98ee4d1c0b 100644
--- a/e-util/e-activity.c
+++ b/e-util/e-activity.c
@@ -212,15 +212,16 @@ activity_describe (EActivity *activity)
const gchar *text;
gdouble percent;
- string = g_string_sized_new (256);
- cancellable = e_activity_get_cancellable (activity);
- percent = e_activity_get_percent (activity);
- state = e_activity_get_state (activity);
text = e_activity_get_text (activity);
if (text == NULL)
return NULL;
+ string = g_string_sized_new (256);
+ cancellable = e_activity_get_cancellable (activity);
+ percent = e_activity_get_percent (activity);
+ state = e_activity_get_state (activity);
+
if (state == E_ACTIVITY_CANCELLED) {
/* Translators: This is a cancelled activity. */
g_string_printf (string, _("%s (cancelled)"), text);