Home | History | Annotate | Download | only in stbi

Lines Matching defs:FREE

237 // free the loaded image -- this is just free()
449 #define FREE(ptr) \
450 do { if (ptr) free((ptr), M_TEMP); } while (/*CONSTCOND*/0)
454 #define FREE(ptr) free((ptr))
623 FREE(retval_from_stbi_load);
972 // assume data buffer is malloced, so malloc a new one and free that one
990 FREE(data);
1032 FREE(data);
1041 if (output == NULL) { FREE(data); return epf("outofmem", "Out of memory"); }
1050 FREE(data);
1059 if (output == NULL) { FREE(data); return epuc("outofmem", "Out of memory"); }
1076 FREE(data);
1738 FREE(z->img_comp[i].raw_data);
1946 FREE(j->img_comp[i].raw_data);
1950 FREE(j->img_comp[i].linebuf);
2092 FREE(j);
2154 FREE(j);
2167 FREE(j);
2552 FREE(a->zout_start);
2555 FREE(a);
2580 FREE(a->zout_start);
2583 FREE(a);
2600 FREE(a);
2620 FREE(a->zout_start);
2622 FREE(a);
2639 FREE(a);
2822 FREE(final);
2829 FREE(a->out);
2873 // between here and FREE(out) below, exiting would leak
2894 FREE(a->out);
3061 FREE(z->idata); z->idata = NULL;
3079 FREE(z->expanded); z->expanded = NULL;
3124 FREE(p->expanded); p->expanded = NULL;
3125 FREE(p->idata); p->idata = NULL;
3382 if (psize == 0 || psize > 256) { FREE(out); return epuc("invalid", "Corrupt BMP"); }
3393 else { FREE(out); return epuc("bad bpp", "Corrupt BMP"); }
3432 FREE(out);
3816 FREE( tga_palette );
4258 FREE(result);
4418 FREE(g);
4704 FREE(pg);
4904 FREE(scanline);
4909 if (len != width) { FREE(hdr_data); FREE(scanline); return epf("invalid decoded scanline length", "corrupt HDR"); }
4932 FREE(scanline);