In case of error in gimp_prop_eval_parse_reference(), we were obviously freeing the string which had just been allocated by g_strdup(), not the pointer to this string. Thanks to Massimo for raising this issue.
We are getting more and app/widgets/ is already too large.