Mercurial > pidgin.yaz
diff src/dialogs.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 | 7d0ef30fe8c0 |
| children | b9e90a914e20 |
line wrap: on
line diff
--- a/src/dialogs.c Fri Mar 24 06:59:03 2000 +0000 +++ b/src/dialogs.c Fri Mar 24 08:55:32 2000 +0000 @@ -385,6 +385,7 @@ aol_icon(w->window->window); gtk_widget_show(w->window); + g_free(buf); } @@ -890,7 +891,7 @@ junk = gtk_editable_get_chars(GTK_EDITABLE(b->text), 0, -1); g_snprintf(current_user->user_info, sizeof(current_user->user_info), "%s", junk); - + save_prefs(); buf = g_malloc(strlen(current_user->user_info) * 2); @@ -898,7 +899,7 @@ escape_text(buf); serv_set_info(buf); g_free(buf); - + g_free(junk); destroy_dialog(NULL, b->window); g_free(b); } @@ -1438,6 +1439,8 @@ gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(logdialog)->cancel_button), "clicked", GTK_SIGNAL_FUNC(cancel_log), bname); } + g_free(buf); + gtk_widget_show(logdialog); gdk_window_raise(logdialog->window); } @@ -1883,6 +1886,7 @@ if (!strcasecmp(first, "Config {\n")) { destroy_dialog(NULL, importdialog); importdialog = NULL; + g_free(buf); return; } else if (buf[0] == 'm') { buf2 = buf;
