diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-10-14 22:45:39 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-10-14 22:45:39 +0200 |
commit | c124f153354b6f63aa5f40dbe8e99b6b23cb416b (patch) | |
tree | fd77f10a561afbfed4dc3b0a11616376e28a0fc7 /src/objects.c | |
parent | 5e546ea03485811a893f3e264b7a4315fbbf7005 (diff) |
Scale images properly
Diffstat (limited to 'src/objects.c')
-rw-r--r-- | src/objects.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/objects.c b/src/objects.c index 5fd234b..be92262 100644 --- a/src/objects.c +++ b/src/objects.c @@ -111,6 +111,16 @@ struct image *get_image(struct image_store *is, char *filename) } +void unref_image(struct image *i) +{ + i->refcount--; + + if ( i->refcount == 0 ) { + /* FIXME: Delete image */ + } +} + + struct image_store *image_store_new() { struct image_store *is; |