[empathy] fix memory leak



commit cd240b10a8196fe4289ebe926ae4ea47f4be4365
Author: Chandni Verma <chandniverma2112 gmail com>
Date:   Tue Aug 6 15:48:27 2013 +0530

    fix memory leak

 libempathy-gtk/empathy-individual-menu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index c7f4c7d..b27bfde 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]