diff options
author | Milan Crha <mcrha@redhat.com> | 2011-02-15 02:15:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-02-15 02:15:36 +0800 |
commit | 4b9ac3879d25d14cbaaab9237626257c3561f7ff (patch) | |
tree | f9a445d2652644ea9ed64da2cd76f1ad442e83b3 /e-util | |
parent | cf41379058d6e78ea138603186acb8174c58e0ca (diff) | |
download | gsoc2013-evolution-4b9ac3879d25d14cbaaab9237626257c3561f7ff.tar gsoc2013-evolution-4b9ac3879d25d14cbaaab9237626257c3561f7ff.tar.gz gsoc2013-evolution-4b9ac3879d25d14cbaaab9237626257c3561f7ff.tar.bz2 gsoc2013-evolution-4b9ac3879d25d14cbaaab9237626257c3561f7ff.tar.lz gsoc2013-evolution-4b9ac3879d25d14cbaaab9237626257c3561f7ff.tar.xz gsoc2013-evolution-4b9ac3879d25d14cbaaab9237626257c3561f7ff.tar.zst gsoc2013-evolution-4b9ac3879d25d14cbaaab9237626257c3561f7ff.zip |
Fix few memory leaks
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-activity.c | 9 |
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); |