diff --git a/ChangeLog b/ChangeLog index 2eee1617d9..fddfb4b2f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/app/gimprc.c b/app/gimprc.c index 3b7509305c..8417e69732 100644 --- a/app/gimprc.c +++ b/app/gimprc.c @@ -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)