Don't leak memory in PBO case
authormalc <av1474@comtv.ru>
Tue, 4 Dec 2012 14:43:18 +0000 (4 18:43 +0400)
committermalc <av1474@comtv.ru>
Tue, 4 Dec 2012 14:43:18 +0000 (4 18:43 +0400)
link.c

diff --git a/link.c b/link.c
index fb25bed..b099460 100644 (file)
--- a/link.c
+++ b/link.c
@@ -591,6 +591,7 @@ static void freetile (struct tile *tile)
     }
     else {
         free (tile->pbo);
+        fz_drop_pixmap (state.ctx, tile->pixmap);
     }
     free (tile);
 }