diff options
Diffstat (limited to 'hw/xquartz/pbproxy/x-selection.m')
-rw-r--r-- | hw/xquartz/pbproxy/x-selection.m | 11 |
1 files 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.*/ |