changeset 846:4b05985bae5e

[gaim-migrate @ 856] plugging some leaks committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 06 Sep 2000 20:37:48 +0000
parents 647b110f7a1a
children 430a88eb4a68
files src/conversation.c src/util.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Wed Sep 06 20:29:31 2000 +0000
+++ b/src/conversation.c	Wed Sep 06 20:37:48 2000 +0000
@@ -804,6 +804,7 @@
 		while((t = strstr(t, "<FONT SIZE="))) {
 			if (((t-s) < finish) && ((t-s) >= start)) {
 				gtk_editable_delete_text(GTK_EDITABLE(entry), (t-s), (t-s) + strlen(tag));
+				g_free(s);
 				s = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
 				t = s;
 			}
@@ -815,6 +816,7 @@
 		while((t = strstr(t, tag))) {
 			if (((t-s) < finish) && ((t-s) >= start)) {
 				gtk_editable_delete_text(GTK_EDITABLE(entry), (t-s), (t-s) + strlen(tag));
+				g_free(s);
 				s = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
 				t = s;
 			}
@@ -879,6 +881,7 @@
 	} else {
 		gtk_editable_insert_text(GTK_EDITABLE(entry), post, strlen(post), &pos);
 	}
+	g_free(s);
 	sprintf(debug_buff, _("Setting position to %d\n"), pos);
 	debug_print(debug_buff);
 	gtk_editable_set_position(GTK_EDITABLE(entry), pos);
--- a/src/util.c	Wed Sep 06 20:29:31 2000 +0000
+++ b/src/util.c	Wed Sep 06 20:37:48 2000 +0000
@@ -827,6 +827,7 @@
                                 g_string_free( string, TRUE );
                         }
                         pclose( file);
+			g_free(word);
                         break;
                 }
                 else if(!isalpha(GTK_TEXT_INDEX(GTK_TEXT(text), start)))