[empathy: 13/80] Don't free an uninitialized variable
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 13/80] Don't free an uninitialized variable
- Date: Fri, 10 Jun 2011 08:40:15 +0000 (UTC)
commit e899cd55697dba16f40d146ec3637ddd6f3bc53b
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Mon May 2 10:47:15 2011 +0100
Don't free an uninitialized variable
libempathy-gtk/empathy-log-window.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 10904dd..b24643f 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -725,7 +725,7 @@ log_window_append_call (TplEvent *event,
TplCallEvent *call = TPL_CALL_EVENT (event);
GtkTreeStore *store = log_window->store_events;
GtkTreeIter iter, child;
- gchar *pretty_date, *body, *duration, *finished;
+ gchar *pretty_date, *duration, *finished;
GDateTime *started_date, *finished_date;
GTimeSpan span;
@@ -747,6 +747,8 @@ log_window_append_call (TplEvent *event,
if (tpl_call_event_get_end_reason (call) != TPL_CALL_END_REASON_NO_ANSWER)
{
+ gchar *body;
+
span = tpl_call_event_get_duration (TPL_CALL_EVENT (event));
if (span < 60)
duration = g_strdup_printf (_("%" G_GINT64_FORMAT " seconds"), span);
@@ -772,9 +774,10 @@ log_window_append_call (TplEvent *event,
COL_EVENTS_TARGET, event_get_target (event),
COL_EVENTS_EVENT, event,
-1);
+
+ g_free (body);
}
- g_free (body);
g_free (pretty_date);
g_date_time_unref (started_date);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]