diff options
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; |