]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_window_property): Handle case that property gets
authorGerd Moellmann <gerd@gnu.org>
Thu, 13 Sep 2001 12:56:36 +0000 (12:56 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 13 Sep 2001 12:56:36 +0000 (12:56 +0000)
deleted between the two calls to XGetWindowProperty.

src/ChangeLog
src/xfns.c

index 72b7d55aca070120099b9645fa36a0ab3ea8a7ed..c385f14159617d52082ec217faeec4758219c772 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-13  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfns.c (Fx_window_property): Handle case that property gets
+       deleted between the two calls to XGetWindowProperty.
+
 2001-09-11  Gerd Moellmann  <gerd@gnu.org>
 
        * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
index e180b9561efae9a0ca2f5f1b78c9fd5256d783ac..e2690e7a30ecd445ef78208b3306cb54c197474c 100644 (file)
@@ -10279,7 +10279,7 @@ value.")
                               &actual_type, &actual_format, 
                               &actual_size, &bytes_remaining, 
                               (unsigned char **) &tmp_data);
-      if (rc == Success)
+      if (rc == Success && tmp_data)
        prop_value = make_string (tmp_data, size);
 
       XFree (tmp_data);