Mercurial > pidgin
diff src/gtklog.c @ 10574:77ef3f2f0df8
[gaim-migrate @ 11966]
Leak fixes, round 3. Also, fix find in the log viewer to find in all
logs, not just every-other-one-you-select.
Plus some other minor tweaks.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 05 Feb 2005 17:59:20 +0000 |
parents | 5b33637b69fd |
children | 0f5c5e6fb27f |
line wrap: on
line diff
--- a/src/gtklog.c Fri Feb 04 23:42:33 2005 +0000 +++ b/src/gtklog.c Sat Feb 05 17:59:20 2005 +0000 @@ -105,6 +105,7 @@ 0, title, 1, log, -1); } + g_free(read); } @@ -189,12 +190,15 @@ title = title_utf8; gtk_window_set_title(GTK_WINDOW(viewer->window), title); gtk_imhtml_clear(GTK_IMHTML(viewer->imhtml)); - gtk_imhtml_append_text(GTK_IMHTML(viewer->imhtml), read, + gtk_imhtml_append_text(GTK_IMHTML(viewer->imhtml), read, GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_TITLE | GTK_IMHTML_NO_SCROLL | ((flags & GAIM_LOG_READ_NO_NEWLINE) ? GTK_IMHTML_NO_NEWLINE : 0)); if (viewer->search) + { + gtk_imhtml_search_clear(GTK_IMHTML(viewer->imhtml)); gtk_imhtml_search_find(GTK_IMHTML(viewer->imhtml), viewer->search); + } g_free(read); g_free(title); @@ -225,6 +229,7 @@ /* do utf8 conversions */ utf8_tmp = gaim_utf8_try_convert(month); strncpy(month, utf8_tmp, sizeof(month)); + g_free(utf8_tmp); utf8_tmp = gaim_utf8_try_convert(title); strncpy(title, utf8_tmp, sizeof(title)); g_free(utf8_tmp);