aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2013-08-06 18:18:27 +0800
committerChandni Verma <chandniverma2112@gmail.com>2013-08-06 18:20:50 +0800
commitcd240b10a8196fe4289ebe926ae4ea47f4be4365 (patch)
treed8039e532a8818d6a96f4046f6b05f7bbd4d4f94
parent8813a1d0dbb2fd256e47cbc25dadcc6dd86e4475 (diff)
downloadgsoc2013-empathy-cd240b10a8196fe4289ebe926ae4ea47f4be4365.tar
gsoc2013-empathy-cd240b10a8196fe4289ebe926ae4ea47f4be4365.tar.gz
gsoc2013-empathy-cd240b10a8196fe4289ebe926ae4ea47f4be4365.tar.bz2
gsoc2013-empathy-cd240b10a8196fe4289ebe926ae4ea47f4be4365.tar.lz
gsoc2013-empathy-cd240b10a8196fe4289ebe926ae4ea47f4be4365.tar.xz
gsoc2013-empathy-cd240b10a8196fe4289ebe926ae4ea47f4be4365.tar.zst
gsoc2013-empathy-cd240b10a8196fe4289ebe926ae4ea47f4be4365.zip
fix memory leak
-rw-r--r--libempathy-gtk/empathy-individual-menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index c7f4c7dbb..b27bfde46 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -720,6 +720,7 @@ remove_dialog_show (const gchar *message,
/* gtk_dialog_add_button() doesn't allow us to pass a string with a
* mnemonic so we have to create the button manually. */
button = gtk_button_new_with_mnemonic (button_text);
+ g_free (button_text);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button,
REMOVE_DIALOG_RESPONSE_REMOVE_FROM_GROUP);