[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src xselect.c
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] emacs/src xselect.c |
Date: |
Wed, 03 Dec 2008 04:37:30 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 08/12/03 04:37:30
Modified files:
src : xselect.c
Log message:
Fix last fix.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/xselect.c?cvsroot=emacs&r1=1.187&r2=1.188
Patches:
Index: xselect.c
===================================================================
RCS file: /sources/emacs/emacs/src/xselect.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -b -r1.187 -r1.188
--- xselect.c 3 Dec 2008 04:34:06 -0000 1.187
+++ xselect.c 3 Dec 2008 04:37:29 -0000 1.188
@@ -2369,7 +2369,7 @@
{
Window window;
Atom buffer_atom;
- unsigned char *data;
+ unsigned char *data = NULL;
int bytes;
Atom type;
int format;
@@ -2393,11 +2393,9 @@
x_get_window_property (display, window, buffer_atom, &data, &bytes,
&type, &format, &size, 0);
- if (!data)
- return Qnil;
-
- if (!format)
+ if (!data || !format)
{
+ if (data)
xfree (data);
return Qnil;
}