diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-05-21 13:55:42 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-05-21 13:55:42 +0200 |
commit | a08d89c334bcdda3fbcecbf2bc739ec8769ef47c (patch) | |
tree | 89ef76393b49e1edfe73df57d93d59c6bc02a973 /src/presentation.c | |
parent | 589f48b7667fe3ce12ee79709804a1102a2c9474 (diff) |
ImageStore stuff
Diffstat (limited to 'src/presentation.c')
-rw-r--r-- | src/presentation.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/presentation.c b/src/presentation.c index 328514f..7bf09d9 100644 --- a/src/presentation.c +++ b/src/presentation.c @@ -35,6 +35,7 @@ #include "loadsave.h" #include "mainwindow.h" #include "frame.h" +#include "imagestore.h" static int num_presentations = 0; @@ -54,6 +55,7 @@ void free_presentation(struct presentation *p) /* FIXME: Loads of stuff leaks here */ free(p->filename); + imagestore_destroy(p->is); free(p); if ( final ) { @@ -247,6 +249,8 @@ struct presentation *new_presentation() new->max_selection = 64; if ( alloc_selection(new) ) return NULL; + new->is = imagestore_new(); + return new; } |