Mercurial > pidgin.yaz
comparison src/gtkimhtml.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 | 74180743304a |
children | 0f7452b1f777 |
comparison
equal
deleted
inserted
replaced
10573:2d809781816f | 10574:77ef3f2f0df8 |
---|---|
944 | 944 |
945 g_list_free(imhtml->scalables); | 945 g_list_free(imhtml->scalables); |
946 g_slist_free(imhtml->im_images); | 946 g_slist_free(imhtml->im_images); |
947 if (imhtml->protocol_name) | 947 if (imhtml->protocol_name) |
948 g_free(imhtml->protocol_name); | 948 g_free(imhtml->protocol_name); |
949 if (imhtml->search_string) | |
950 g_free(imhtml->search_string); | |
949 G_OBJECT_CLASS(parent_class)->finalize (object); | 951 G_OBJECT_CLASS(parent_class)->finalize (object); |
950 } | 952 } |
951 | 953 |
952 /* Boring GTK stuff */ | 954 /* Boring GTK stuff */ |
953 static void gtk_imhtml_class_init (GtkIMHtmlClass *klass) | 955 static void gtk_imhtml_class_init (GtkIMHtmlClass *klass) |
3078 gtk_text_buffer_get_start_iter(imhtml->text_buffer, &iter); | 3080 gtk_text_buffer_get_start_iter(imhtml->text_buffer, &iter); |
3079 } else { | 3081 } else { |
3080 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &iter, | 3082 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &iter, |
3081 gtk_text_buffer_get_mark(imhtml->text_buffer, "search")); | 3083 gtk_text_buffer_get_mark(imhtml->text_buffer, "search")); |
3082 } | 3084 } |
3085 g_free(imhtml->search_string); | |
3083 imhtml->search_string = g_strdup(text); | 3086 imhtml->search_string = g_strdup(text); |
3084 | 3087 |
3085 if (gtk_source_iter_forward_search(&iter, imhtml->search_string, | 3088 if (gtk_source_iter_forward_search(&iter, imhtml->search_string, |
3086 GTK_SOURCE_SEARCH_VISIBLE_ONLY | GTK_SOURCE_SEARCH_CASE_INSENSITIVE, | 3089 GTK_SOURCE_SEARCH_VISIBLE_ONLY | GTK_SOURCE_SEARCH_CASE_INSENSITIVE, |
3087 &start, &end, NULL)) { | 3090 &start, &end, NULL)) { |