Lines Matching refs:STBI_FREE
16 And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free
671 #if defined(STBI_MALLOC) && defined(STBI_FREE) && (defined(STBI_REALLOC) || defined(STBI_REALLOC_SIZED))
673 #elif !defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) && !defined(STBI_REALLOC_SIZED)
676 #error "Must define all or none of STBI_MALLOC, STBI_FREE, and STBI_REALLOC (or STBI_REALLOC_SIZED)."
682 #define STBI_FREE(p) free(p)
1101 STBI_FREE(retval_from_stbi_load);
1200 STBI_FREE(orig);
1216 STBI_FREE(orig);
1763 STBI_FREE(data);
1788 default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return stbi__errpuc("unsupported", "Unsupported format conversion");
1793 STBI_FREE(data);
1820 STBI_FREE(data);
1845 default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return (stbi__uint16*) stbi__errpuc("unsupported", "Unsupported format conversion");
1850 STBI_FREE(data);
1862 if (output == NULL) { STBI_FREE(data); return stbi__errpf("outofmem", "Out of memory"); }
1875 STBI_FREE(data);
1888 if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); }
1905 STBI_FREE(data);
3245 STBI_FREE(z->img_comp[i].raw_data);
3250 STBI_FREE(z->img_comp[i].raw_coeff);
3255 STBI_FREE(z->img_comp[i].linebuf);
4036 STBI_FREE(j);
4050 STBI_FREE(j);
4074 STBI_FREE(j);
4509 STBI_FREE(a.zout_start);
4530 STBI_FREE(a.zout_start);
4557 STBI_FREE(a.zout_start);
4886 STBI_FREE(final);
4897 STBI_FREE(a->out);
4986 STBI_FREE(a->out);
5208 STBI_FREE(z->idata); z->idata = NULL;
5234 STBI_FREE(z->expanded); z->expanded = NULL;
5287 STBI_FREE(p->out); p->out = NULL;
5288 STBI_FREE(p->expanded); p->expanded = NULL;
5289 STBI_FREE(p->idata); p->idata = NULL;
5600 if (psize == 0 || psize > 256) { STBI_FREE(out); return stbi__errpuc("invalid", "Corrupt BMP"); }
5612 else { STBI_FREE(out); return stbi__errpuc("bad bpp", "Corrupt BMP"); }
5669 if (!mr || !mg || !mb) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); }
5675 if (rcount > 8 || gcount > 8 || bcount > 8 || acount > 8) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); }
5943 STBI_FREE(tga_data);
5952 STBI_FREE(tga_data);
5963 STBI_FREE(tga_data);
5964 STBI_FREE(tga_palette);
6045 STBI_FREE( tga_palette );
6237 STBI_FREE(out);
6529 STBI_FREE(result);
6643 STBI_FREE(g);
6649 STBI_FREE(g);
6953 STBI_FREE(g->out);
6954 STBI_FREE(g->history);
6955 STBI_FREE(g->background);
6957 if (out) STBI_FREE(out);
6958 if (delays && *delays) STBI_FREE(*delays);
7038 STBI_FREE(g.out);
7039 STBI_FREE(g.history);
7040 STBI_FREE(g.background);
7072 STBI_FREE(g.out);
7076 STBI_FREE(g.history);
7077 STBI_FREE(g.background);
7250 STBI_FREE(scanline);
7255 if (len != width) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("invalid decoded scanline length", "corrupt HDR"); }
7259 STBI_FREE(hdr_data);
7273 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
7278 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
7288 STBI_FREE(scanline);
7533 STBI_FREE(out);
7823 STBI_MALLOC,STBI_REALLOC,STBI_FREE