blob: 2dda809cc96e3b36145585af4dea67f6cfe9a2df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* $Id$ */
#include "gd.h"
#include <stdio.h>
#include <stdlib.h>
#include "gdtest.h"
/* To check memory leaks, run such as 'valgrind --leak-check=full ./bug00185' */
int
main()
{
gdImagePtr im;
char path[1024];
sprintf(path, "%s/xpm/bug00185.xpm", GDTEST_TOP_DIR);
im = gdImageCreateFromXpm(path);
if (!im) return 1;
gdImageDestroy(im);
sprintf(path, "%s/xpm/bug00185_damaged.xpm", GDTEST_TOP_DIR);
im = gdImageCreateFromXpm(path);
if (!im) return 0;
gdImageDestroy(im);
return 2;
}
|