From e3d71abc3728b25c0fe766ec8eb5e79972906471 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 18 Oct 2022 21:24:49 -0700 Subject: 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. --- src/tex-node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tex-node.c') 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); -- cgit v1.2.3