瀏覽代碼

* 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
remotes/tiles
sam 16 年之前
父節點
當前提交
2dc8bb35dd
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      pipi/pipi.c

+ 1
- 0
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;
}


Loading…
取消
儲存