app/pdb/gimprc_cmds.c added a missing g_strdup() that caused

2001-11-14  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimprc_cmds.c
	* tools/pdbgen/pdb/gimprc.pdb: added a missing g_strdup() that caused
	gimp_get_default_comment() to free the global default comment.
This commit is contained in:
Sven Neumann 2001-11-14 17:34:39 +00:00 committed by Sven Neumann
parent 55aa4776f7
commit 38a1e54223
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2001-11-14 Sven Neumann <sven@gimp.org>
* app/pdb/gimprc_cmds.c
* tools/pdbgen/pdb/gimprc.pdb: added a missing g_strdup() that caused
gimp_get_default_comment() to free the global default comment.
2001-11-14 Michael Natterer <mitch@gimp.org>
* app/tools/tool_manager.[ch]: added

View File

@ -169,7 +169,7 @@ get_default_comment_invoker (Gimp *gimp,
Argument *return_args;
gchar *comment;
comment = gimp->config->default_comment;
comment = g_strdup (gimp->config->default_comment);
success = TRUE;
return_args = procedural_db_return_args (&get_default_comment_proc, success);

View File

@ -141,7 +141,7 @@ sub get_default_comment {
%invoke = (
code => <<'CODE'
{
comment = gimp->config->default_comment;
comment = g_strdup (gimp->config->default_comment);
success = TRUE;
}
CODE