mothra: fix crash

This commit is contained in:
cinap_lenrek 2015-08-16 03:19:05 +02:00
parent 344ddf5f55
commit f1efd09bbb

View file

@ -186,7 +186,8 @@ void rdform(Hglob *g){
s=pl_getattr(g->attr, "alt");
if(s==0 || *s == 0) s = f->value;
pl_htmloutput(g, g->nsp, s, f);
g->state->image[0] = 0;
free(g->state->image);
g->state->image = 0;
g->state->width=0;
g->state->height=0;
break;