GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit a9df0647 authored by Sven Neumann's avatar Sven Neumann

plugged a memleak

parent 40779fe3
Thu Feb 24 02:20:15 CET 2000 Sven Neumann <>
* app/gimprc.c: gimp_parasite_attach() creates a copy of
the parasite, so free it here after attaching it
Thu Feb 24 00:42:12 CET 2000 Sven Neumann <>
* app/text_tool.c: don't crash if a font couldn't be loaded.
......@@ -2407,6 +2407,7 @@ parse_parasite (gpointer val1p,
int res = ERROR;
gchar *identifier = NULL;
gulong flags = 0;
Parasite *parasite;
token = get_next_token ();
if (token != TOKEN_STRING)
......@@ -2424,7 +2425,9 @@ parse_parasite (gpointer val1p,
if (token != TOKEN_STRING)
goto error;
gimp_parasite_attach (parasite_new (identifier, flags, token_int, token_str));
parasite = parasite_new (identifier, flags, token_int, token_str);
gimp_parasite_attach (parasite); /* attaches a copy */
parasite_free (parasite);
token = get_next_token ();
if (token != TOKEN_RIGHT_PAREN)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment