From b742da0b719198a42a086049771792af84f470ca Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 26 Oct 2008 13:17:49 -0700 Subject: [PATCH] XQuartz: pbproxy: fixed blocking (cherry picked from commit bb330a1b1c480e89727fb75ff5aeb71f4afc5ee3) --- hw/xquartz/pbproxy/x-selection.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/xquartz/pbproxy/x-selection.m b/hw/xquartz/pbproxy/x-selection.m index b95dfbf48..f17970c59 100644 --- a/hw/xquartz/pbproxy/x-selection.m +++ b/hw/xquartz/pbproxy/x-selection.m @@ -250,11 +250,12 @@ get_property(Window win, Atom property, struct propdata *pdata, Bool delete, Ato { string = True; } - else - { - const char *type = XGetAtomName(x_dpy, a); - DB("Unhandled X11 mime type: %s", type); - Xfree(type); + else + { + char *type = XGetAtomName(x_dpy, a); + DB("Unhandled X11 mime type: %s", type); + XFree(type); + } } /*We prefer PNG over strings, and UTF8 over a Latin-1 string.*/