2004-11-07 [colin] 0.9.12cvs140.2

* src/textview.c
		Fix memleak. Patch by Alfons.
This commit is contained in:
Colin Leroy 2004-11-07 21:04:55 +00:00
parent cee146e9af
commit d33c6fdd5f
4 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2004-11-07 [colin] 0.9.12cvs140.2
* src/textview.c
Fix memleak. Patch by Alfons.
2004-11-06 [colin] 0.9.12cvs140.1
* src/compose.c

View file

@ -217,3 +217,4 @@
( cvs diff -u -r 1.382.2.58 -r 1.382.2.59 src/compose.c; cvs diff -u -r 1.49.2.17 -r 1.49.2.18 src/procmime.c; ) > 0.9.12cvs139.1.patchset
( cvs diff -u -r 1.100.2.5 -r 1.100.2.6 AUTHORS; cvs diff -u -r 1.96.2.25 -r 1.96.2.26 src/textview.c; cvs diff -u -r 1.12.2.2 -r 1.12.2.3 src/textview.h; ) > 0.9.12cvs139.2.patchset
( cvs diff -u -r 1.382.2.59 -r 1.382.2.60 src/compose.c; ) > 0.9.12cvs140.1.patchset
( cvs diff -u -r 1.96.2.26 -r 1.96.2.27 src/textview.c; ) > 0.9.12cvs140.2.patchset

View file

@ -13,7 +13,7 @@ INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=140
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=.1
EXTRA_GTK2_VERSION=.2
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}

View file

@ -1459,8 +1459,8 @@ gboolean textview_search_string(TextView *textview, const gchar *str,
gchar *text = NULL;
int i = 0;
gtk_text_buffer_get_end_iter(buffer, &real_end);
text = strdup(gtk_text_buffer_get_text(buffer, &iter,
&real_end, FALSE));
text = gtk_text_buffer_get_text(buffer, &iter,
&real_end, FALSE);
while (!found && i++ < strlen(text) - 1) {
found = (strncasecmp(text+i, str, strlen(str)) == 0);
@ -1525,8 +1525,8 @@ gboolean textview_search_string_backward(TextView *textview, const gchar *str,
i = gtk_text_iter_get_offset(&iter) - strlen(str) - 1;
gtk_text_buffer_get_start_iter(buffer, &real_start);
text = strdup(gtk_text_buffer_get_text(buffer, &real_start,
&iter, FALSE));
text = gtk_text_buffer_get_text(buffer, &real_start,
&iter, FALSE);
while (!found && i-- > 0) {
found = (strncasecmp(text+i, str, strlen(str)) == 0);