diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-10-18 21:24:49 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-10-18 23:14:09 -0700 |
commit | e3d71abc3728b25c0fe766ec8eb5e79972906471 (patch) | |
tree | 64762ae0fb741e74bf3a45524ba550a13b859fd1 /src | |
parent | eaa3c5296813123d05463f3a266dd4a233a8c3fe (diff) |
tex-node: fix tex leak
This must have been introduced accidentally when rearranging the
function. Fortunately tex_node_new_mem() isn't really used by
anything except hungrycat.c so it's been relatively harmless.
Diffstat (limited to 'src')
-rw-r--r-- | src/tex-node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tex-node.c b/src/tex-node.c index a3e0830..1fd0ac0 100644 --- a/src/tex-node.c +++ b/src/tex-node.c @@ -94,7 +94,7 @@ stage_t * tex_node_new_tex(stage_conf_t *conf, tex_t *tex, m4f_t *projection_x, stage_t * tex_node_new_mem(stage_conf_t *conf, int width, int height, const unsigned char *buf, m4f_t *projection_x, m4f_t *model_x) { tex_t *tex = tex_new(width, height, buf); - stage_t *stage = tex_node_new_tex(conf, tex_new(width, height, buf), projection_x, model_x); + stage_t *stage = tex_node_new_tex(conf, tex, projection_x, model_x); tex_free(tex); |