summaryrefslogtreecommitdiff
path: root/src/x11/meta-selection-source-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11/meta-selection-source-x11.c')
-rw-r--r--src/x11/meta-selection-source-x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/x11/meta-selection-source-x11.c b/src/x11/meta-selection-source-x11.c
index 35451542b..a154b21af 100644
--- a/src/x11/meta-selection-source-x11.c
+++ b/src/x11/meta-selection-source-x11.c
@@ -155,7 +155,7 @@ atoms_to_mimetypes (MetaX11Display *display,
for (i = 0; i < n_atoms; i++)
{
- const gchar *mimetype;
+ char *mimetype;
meta_x11_error_trap_push (display);
mimetype = XGetAtomName (xdisplay, atoms[i]);
@@ -170,6 +170,8 @@ atoms_to_mimetypes (MetaX11Display *display,
text_plain_found |= strcmp (mimetype, "text/plain") == 0;
utf8_string_found |= strcmp (mimetype, "UTF8_STRING") == 0;
string_found |= strcmp (mimetype, "STRING") == 0;
+
+ XFree (mimetype);
}
/* Ensure non-x11 clients get well-known mimetypes */