summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexander Polakov <plhk@sdf.org>2013-01-27 04:35:38 +0400
committerAlexander Polakov <plhk@sdf.org>2013-01-27 04:38:35 +0400
commit45b08ee804b5aab0bc63af2a9f5891e7d6d414e3 (patch)
tree95bd7188708eeb695d39b758982bf2b4f7b78bb8
parentc0fb6ff053d798a98705073f7ef7bf6249ecbe9a (diff)
downloadxmobar-45b08ee804b5aab0bc63af2a9f5891e7d6d414e3.tar.gz
xmobar-45b08ee804b5aab0bc63af2a9f5891e7d6d414e3.tar.bz2
Add finalizer for the icon pixmap
-rw-r--r--src/XUtil.hsc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/XUtil.hsc b/src/XUtil.hsc
index 28569da..bc43864 100644
--- a/src/XUtil.hsc
+++ b/src/XUtil.hsc
@@ -167,6 +167,7 @@ loadBitmap d w p = do
if exist
then do
(bw, bh, bp, _, _) <- readBitmapFile d w p
+ addFinalizer bp (freePixmap d bp)
return $ Just $ Bitmap bw bh bp
else
return Nothing