Mercurial > pidgin
diff src/aim.c @ 25:c56db1b46b0d
[gaim-migrate @ 34]
A crap load more of memleak fixes. There's still several more. I've
mailed Peter Techian about these. Hopefully he'll pick up on them.
Thanks again for the Patch, Pete.
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Fri, 24 Mar 2000 08:55:32 +0000 |
| parents | 2846a03bda67 |
| children | b9e90a914e20 |
line wrap: on
line diff
--- a/src/aim.c Fri Mar 24 06:59:03 2000 +0000 +++ b/src/aim.c Fri Mar 24 08:55:32 2000 +0000 @@ -161,9 +161,11 @@ char *txt = gtk_editable_get_chars(GTK_EDITABLE(GTK_COMBO(combo)->entry), 0, -1); struct aim_user *u; - if (!(general_options & OPT_GEN_REMEMBER_PASS)) + if (!(general_options & OPT_GEN_REMEMBER_PASS)) { + g_free(txt); return; - + } + u = find_user(txt); if (u != NULL) { @@ -171,7 +173,8 @@ } else { gtk_entry_set_text(GTK_ENTRY(pass), ""); } - + + g_free(txt); return; }
