Mercurial > pidgin
diff src/conversation.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 | 0a2a1b62a66d |
line wrap: on
line diff
--- a/src/conversation.c Fri Mar 24 06:59:03 2000 +0000 +++ b/src/conversation.c Fri Mar 24 08:55:32 2000 +0000 @@ -327,9 +327,12 @@ char buf[BUF_LONG]; char *buf2; char *buf3; + gchar *buf4; int hdrlen; - g_snprintf(buf, BUF_LONG, "%s", gtk_editable_get_chars(GTK_EDITABLE(c->entry), 0, -1)); + buf4 = gtk_editable_get_chars(GTK_EDITABLE(c->entry), 0, -1); + g_snprintf(buf, BUF_LONG, "%s", buf4); + g_free(buf4); if (!strlen(buf)) { return; @@ -446,6 +449,7 @@ } } while (p1 || p2); tmpo[GTK_EDITABLE(entry)->current_pos]=h; + g_free(tmpo); return res; }
