From 59f4a5e422744f5eda6f1143f297fdb579ecdf23 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Fri, 14 Oct 2011 17:20:46 +1100 Subject: Inline assignments are icky; free leaked string --- src/empathy-call-window.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index a4060b909..4f3abbde9 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -3155,16 +3155,18 @@ show_balance_error (GObject *object, g_free (money); } + tmp = g_strdup_printf (_("Your current balance is %s."), balance), + display_error (self, NULL, _("Sorry, you don’t have enough credit for that call."), - tmp = g_strdup_printf (_("Your current balance is %s."), - balance), - NULL, + tmp, NULL, _("Top Up"), uri, EMP_RESPONSE_BALANCE); + g_free (tmp); + g_free (balance); } static void -- cgit v1.2.3