]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-individual-menu.c
fix memory leak
[empathy.git] / libempathy-gtk / empathy-individual-menu.c
index c7f4c7dbb0514ba6efb6128b4866efdf28261262..b27bfde46e6cbce13ccb926ad9da42958687e9d0 100644 (file)
@@ -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);