Index: gnome-settings-daemon/plugins/clipboard/gsd-clipboard-manager.c
===================================================================
--- gnome-settings-daemon.orig/plugins/clipboard/gsd-clipboard-manager.c	2010-09-14 17:26:18.077966003 +0200
+++ gnome-settings-daemon/plugins/clipboard/gsd-clipboard-manager.c	2010-09-14 17:35:07.117966003 +0200
@@ -599,8 +599,11 @@
                                     &type, &format, &nitems, &remaining,
                                     (unsigned char **) &multiple);
 
-                if (type != XA_ATOM_PAIR)
+                if (type != XA_ATOM_PAIR || nitems == 0) {
+                        if (multiple)
+                                free (multiple);
                         return;
+                }
 
                 for (i = 0; i < nitems; i += 2) {
                         rdata = (IncrConversion *) malloc (sizeof (IncrConversion));
