Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
2caeeb27
Commit
2caeeb27
authored
Nov 11, 2014
by
Ivica Bukvic
Browse files
*fixed memory leak in text_setto as reported by Jonathan Wilkes
parent
dd198f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_text.c
View file @
2caeeb27
...
...
@@ -2354,6 +2354,7 @@ void text_setto(t_text *x, t_glist *glist, char *buf, int bufsize, int pos)
//just retext it
t_rtext
*
yr
=
glist_findrtext
(
glist
,
x
);
if
(
yr
)
rtext_retext
(
yr
);
binbuf_free
(
b
);
}
}
else
/* normally, just destroy the old one and make a new one. */
...
...
@@ -2389,6 +2390,7 @@ void text_setto(t_text *x, t_glist *glist, char *buf, int bufsize, int pos)
//fprintf(stderr,"just retext it\n");
t_rtext
*
yr
=
glist_findrtext
(
glist
,
x
);
if
(
yr
)
rtext_retext
(
yr
);
binbuf_free
(
b
);
}
}
/* if we made a new "pd" or changed a window name,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment