qrcode: fix ncvisual memory leak

pull/873/head
nick black 4 years ago
parent 5d08641751
commit 82fe736d15
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -146,6 +146,7 @@ draw_background(struct notcurses* nc){
return -1;
}
ncplane_greyscale(n);
ncvisual_destroy(ncv);
}
return 0;
}

@ -617,6 +617,7 @@ int ncplane_qrcode(ncplane* n, ncblitter_e blitter, int* ymax,
}
ncvisual_geom(n->nc, ncv, &vopts, NULL, NULL, &yscale, &xscale);
}
ncvisual_destroy(ncv);
}
}
free(src);

Loading…
Cancel
Save