pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c:2733: Inside #if defined(LAYERS_DUAL)
   aline1=malloc(sizeof(rgb_group)*width + RGB_VEC_PAD);    line2=malloc(sizeof(rgb_group)*width + RGB_VEC_PAD);    aline2=malloc(sizeof(rgb_group)*width + RGB_VEC_PAD);    if (!line1 || !aline1    !line2 || !aline2)    {    if (line1) free(line1);    if (aline1) free(aline1);    if (line2) free(line2);    if (aline2) free(aline2); -  resource_error(NULL,0,0,"memory",4*(sizeof(rgb_group)*width + RGB_VEC_PAD), -  "Out of memory.\n"); +  out_of_memory_error(NULL, -1, 4*(sizeof(rgb_group)*width + RGB_VEC_PAD));    }   #endif       da=dest->alp->img;    d=dest->img->img;       /* loop over lines */    for (y=0; y<dest->ysize; y++)    {    if (layers>1 || layer[0]->row_func!=lm_normal ||