From 2dc8bb35dd87cb8a5b9cfba63735d58aeca09bce Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 4 Aug 2008 17:23:55 +0000 Subject: [PATCH] * pipi.c: fix a memory leak caused by empty picture having codec_format set to zero (and clashing with a real image format). git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2669 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/pipi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pipi/pipi.c b/pipi/pipi.c index 21b7f84..738dac0 100644 --- a/pipi/pipi.c +++ b/pipi/pipi.c @@ -48,6 +48,7 @@ pipi_image_t *pipi_new(int w, int h) img->w = w; img->h = h; img->last_modified = PIPI_PIXELS_UNINITIALISED; + img->codec_format = PIPI_PIXELS_UNINITIALISED; return img; }