fix wrong components problem in png loading

pull/301/head
Steve Tang 2016-05-11 11:37:17 +08:00
parent 2c047c7a27
commit ee20160e6d
1 changed files with 1 additions and 1 deletions

View File

@ -4606,7 +4606,7 @@ static unsigned char *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req
} }
*x = p->s->img_x; *x = p->s->img_x;
*y = p->s->img_y; *y = p->s->img_y;
if (n) *n = p->s->img_n; if (n) *n = p->s->img_out_n;
} }
STBI_FREE(p->out); p->out = NULL; STBI_FREE(p->out); p->out = NULL;
STBI_FREE(p->expanded); p->expanded = NULL; STBI_FREE(p->expanded); p->expanded = NULL;