diff options
author | Tor Andersson <tor@ghostscript.com> | 2005-03-30 08:30:22 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2005-03-30 08:30:22 +0200 |
commit | ee154f16bd09a43359967f7e7b86c3677c09461d (patch) | |
tree | 08896cfa9ff55e05bfe7855965c620d45115d4d5 /base/res_image.c | |
parent | 460ad7040d67a4a93a153f98095ff952a2b15d37 (diff) | |
download | mupdf-ee154f16bd09a43359967f7e7b86c3677c09461d.tar.xz |
rename part 1 -- files
Diffstat (limited to 'base/res_image.c')
-rw-r--r-- | base/res_image.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/base/res_image.c b/base/res_image.c new file mode 100644 index 00000000..dbeb1fd8 --- /dev/null +++ b/base/res_image.c @@ -0,0 +1,22 @@ +#include <fitz.h> + +fz_image * +fz_keepimage(fz_image *image) +{ + image->refs ++; + return image; +} + +void +fz_dropimage(fz_image *image) +{ + if (--image->refs == 0) + { + if (image->drop) + image->drop(image); + if (image->cs) + fz_dropcolorspace(image->cs); + fz_free(image); + } +} + |