Mercurial > pidgin.yaz
diff src/dialogs.c @ 38:f60e533679ce
[gaim-migrate @ 47]
Fixed a strlen(away_message) memory leak in create_mess()
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Sat, 25 Mar 2000 13:53:34 +0000 |
parents | d90f556e4aa3 |
children | 72e6a6eb1852 |
line wrap: on
line diff
--- a/src/dialogs.c Sat Mar 25 13:45:13 2000 +0000 +++ b/src/dialogs.c Sat Mar 25 13:53:34 2000 +0000 @@ -1974,7 +1974,7 @@ away_message = gtk_editable_get_chars(GTK_EDITABLE(ca->text), 0, text_len); g_snprintf(b->message, sizeof(b->message), "%s", away_message); - + g_free(away_message); is_checked = GTK_TOGGLE_BUTTON(ca->checkbx)->active; if (is_checked) do_away_message(NULL, b);