2004-11-23 [colin] 0.9.12cvs158.8
authorColin Leroy <colin@colino.net>
Tue, 23 Nov 2004 08:26:47 +0000 (08:26 +0000)
committerColin Leroy <colin@colino.net>
Tue, 23 Nov 2004 08:26:47 +0000 (08:26 +0000)
* src/compose.c
Fix possible double-free
Spotted by Alfons

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

index 6d5a586..de7b204 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-23 [colin]     0.9.12cvs158.8
+
+       * src/compose.c
+               Fix possible double-free
+               Spotted by Alfons
+
 2004-11-23 [colin]     0.9.12cvs158.7
 
        * src/compose.c
index 1cd131a..0b412b4 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.3.2.12 -r 1.3.2.13 src/prefs_themes.c; ) > 0.9.12cvs158.5.patchset
 ( cvs diff -u -r 1.382.2.70 -r 1.382.2.71 src/compose.c; ) > 0.9.12cvs158.6.patchset
 ( cvs diff -u -r 1.382.2.71 -r 1.382.2.72 src/compose.c; ) > 0.9.12cvs158.7.patchset
+( cvs diff -u -r 1.382.2.72 -r 1.382.2.73 src/compose.c; ) > 0.9.12cvs158.8.patchset
index b363248..f96dc31 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=158
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.7
+EXTRA_GTK2_VERSION=.8
 
 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 993fb9e..7e9fe88 100644 (file)
@@ -6914,8 +6914,11 @@ static void compose_grab_focus_before_cb(GtkWidget *widget, Compose *compose)
 {
        gchar *str = NULL;
        GtkClipboard *clip = gtk_clipboard_get(gdk_atom_intern("PRIMARY", FALSE));
-       if (cliptext)
+       if (cliptext) {
                g_free(cliptext);
+               cliptext = NULL;
+       }
+
        if (gtk_clipboard_wait_is_text_available(clip))
                cliptext = gtk_clipboard_wait_for_text(clip);
 }