chiark / gitweb /
Unref dead pixmaps.
[disorder] / disobedience / queue-generic.c
index 21b353e488cf109703c695bfdc0ea21a5b650e8a..081be81d1c26462cc34aa1130e6e10209c35a788 100644 (file)
@@ -492,6 +492,8 @@ static void ql_drag_begin(GtkWidget attribute((unused)) *w,
                       0, y,             /* dest coords */
                       pxw, pxh);        /* size */
     y += pxh;
+    gdk_drawable_unref(qdbs->pixmaps[n]);
+    qdbs->pixmaps[n] = NULL;
   }
   // TODO scale down a bit, the resulting icons are currently a bit on the
   // large side.