reactos/rosapps/smartpdf/fitz/world/res_image.c

24 lines
307 B
C
Raw Normal View History

#include "fitz-base.h"
#include "fitz-world.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);
}
}