mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
qrcode: fix ncvisual memory leak
This commit is contained in:
parent
5d08641751
commit
82fe736d15
@ -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…
Reference in New Issue
Block a user