mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
435a566751
* sumatrapdf - vendor import * everything compiles (libjpeg, poppler, fitz, sumatrapdf) * does NOT link (remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it) svn path=/trunk/; revision=29295
23 lines
307 B
C
23 lines
307 B
C
#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);
|
|
}
|
|
}
|
|
|