瀏覽代碼

libpipi: fix a double free in the Oric codec.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2944 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 年之前
父節點
當前提交
9b044feef7
共有 1 個檔案被更改,包括 0 行新增3 行删除
  1. +0
    -3
      pipi/codec/oric.c

+ 0
- 3
pipi/codec/oric.c 查看文件

@@ -149,10 +149,7 @@ int pipi_save_oric(pipi_image_t *img, char const *name)
screen = malloc(WIDTH * HEIGHT / 6);
write_screen(data, screen);
if(tmp)
{
free(screen);
pipi_free(tmp);
}

fwrite(screen, 1, WIDTH * HEIGHT / 6, fp);
fclose(fp);


Loading…
取消
儲存