aboutsummaryrefslogtreecommitdiffstats
path: root/src/meh.h
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-06-25 16:20:40 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-06-25 16:20:40 -0700
commit45cf68a160f94d1091c3e5c69237505b138daf25 (patch)
tree33b3c29257f6f983b90174caeaa03f60c856de69 /src/meh.h
parent665c97078cfa687273e89c8b969d08f5290bcc01 (diff)
downloadmirror-meh-45cf68a160f94d1091c3e5c69237505b138daf25.tar.gz
mirror-meh-45cf68a160f94d1091c3e5c69237505b138daf25.tar.bz2
mirror-meh-45cf68a160f94d1091c3e5c69237505b138daf25.zip
added close method. Fixed all known memory leaks
Diffstat (limited to 'src/meh.h')
-rw-r--r--src/meh.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/meh.h b/src/meh.h
index 4190bb4..521e4a9 100644
--- a/src/meh.h
+++ b/src/meh.h
@@ -6,12 +6,12 @@ struct image;
struct imageformat{
struct image *(*open)(FILE *);
int (*read)(struct image *);
+ void (*close)(struct image *);
};
struct image{
unsigned char *buf;
unsigned int width, height;
- FILE *f;
struct imageformat *fmt;
};
@@ -21,5 +21,5 @@ XImage *ximage(struct image *img, unsigned int width, unsigned int height);
void setaspect(unsigned int w, unsigned int h);
void xinit();
void drawimage(XImage *ximg, unsigned int width, unsigned int height);
-XImage *getimage(struct image *img, int width, int height);
+XImage *getimage(struct image *img, unsigned int width, unsigned int height);