From ff7381cb04ee746255f744406f61fe98961013da Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Tue, 26 Feb 2013 21:26:06 -0500 Subject: [PATCH] fixed memory leak (see https://sourceforge.net/tracker/?func=detail&aid=3605235&group_id=55736&atid=478070) --- pd/src/g_graph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index 8c9aa9049..a2162894e 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -137,7 +137,8 @@ void glist_delete(t_glist *x, t_gobj *y) if (glist_isvisible(canvas)) gobj_vis(y, x, 0); if (x->gl_editor && (ob = pd_checkobject(&y->g_pd))) - rtext_new(x, ob); + //rtext_new(x, ob); + rtext_free(glist_findrtext(x, ob)); if (x->gl_list == y) { if (y->g_next) x->gl_list = y->g_next; -- GitLab