2004-11-07 [colin] 0.9.12cvs140.2
authorColin Leroy <colin@colino.net>
Sun, 7 Nov 2004 21:04:55 +0000 (21:04 +0000)
committerColin Leroy <colin@colino.net>
Sun, 7 Nov 2004 21:04:55 +0000 (21:04 +0000)
* src/textview.c
Fix memleak. Patch by Alfons.

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/textview.c

index e14ab1082019d72c4188900f9bbc30be280bd654..d7b12a750510449b8d26602f2a0b11c4deb09987 100644 (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
index 3e9ea8704ae69cf47425ed098c838bcc9e73ca64..f76a79c9e4245c35ebfb3c2fb1d206a740a97587 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( 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
index e32a3ad10f3cf9ce725ad2b97322117e00f2bae8..075d9748e5ac11b077825698bc9080577b704f8f 100644 (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}
index bfccff6627b3a1766def8661bb000987547d2055..5859d57355d51b35eb0a7752b4c620b829209039 100644 (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);