]> git.0d.be Git - empathy.git/commitdiff
Inline assignments are icky; free leaked string
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Fri, 14 Oct 2011 06:20:46 +0000 (17:20 +1100)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Fri, 21 Oct 2011 06:04:51 +0000 (17:04 +1100)
src/empathy-call-window.c

index a4060b909d4723fafc06661df34fa82804a2b56a..4f3abbde957618ea8727851a67d48b166294de72 100644 (file)
@@ -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