actually free the memory allocated for the procedure entry.

2006-03-30  Sven Neumann  <sven@gimp.org>

	* app/pdb/procedural_db.c (procedural_db_free_entry): actually
	free the memory allocated for the procedure entry.
This commit is contained in:
Sven Neumann 2006-03-30 08:00:54 +00:00 committed by Sven Neumann
parent afd88f0bf4
commit 7aec70ebad
5 changed files with 69 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2006-03-30 Sven Neumann <sven@gimp.org>
* app/pdb/procedural_db.c (procedural_db_free_entry): actually
free the memory allocated for the procedure entry.
2006-03-30 Michael Natterer <mitch@gimp.org>
* app/pdb/procedural_db.[ch] (struct Argument): replace the value

View File

@ -68,7 +68,19 @@ procedural_db_free_entry (gpointer key,
gpointer user_data)
{
if (value)
g_list_free (value);
{
GList *list;
for (list = value; list; list = g_list_next (list))
{
ProcRecord *procedure = list->data;
g_free (procedure->args);
g_free (procedure->values);
}
g_list_free (value);
}
}
void
@ -669,9 +681,9 @@ procedural_db_destroy_args (Argument *args,
}
ProcRecord *
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
{
g_return_val_if_fail (procedure != NULL, procedure);
g_return_val_if_fail (procedure->args == NULL, procedure);

View File

@ -68,7 +68,19 @@ procedural_db_free_entry (gpointer key,
gpointer user_data)
{
if (value)
g_list_free (value);
{
GList *list;
for (list = value; list; list = g_list_next (list))
{
ProcRecord *procedure = list->data;
g_free (procedure->args);
g_free (procedure->values);
}
g_list_free (value);
}
}
void
@ -669,9 +681,9 @@ procedural_db_destroy_args (Argument *args,
}
ProcRecord *
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
{
g_return_val_if_fail (procedure != NULL, procedure);
g_return_val_if_fail (procedure->args == NULL, procedure);

View File

@ -68,7 +68,19 @@ procedural_db_free_entry (gpointer key,
gpointer user_data)
{
if (value)
g_list_free (value);
{
GList *list;
for (list = value; list; list = g_list_next (list))
{
ProcRecord *procedure = list->data;
g_free (procedure->args);
g_free (procedure->values);
}
g_list_free (value);
}
}
void
@ -669,9 +681,9 @@ procedural_db_destroy_args (Argument *args,
}
ProcRecord *
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
{
g_return_val_if_fail (procedure != NULL, procedure);
g_return_val_if_fail (procedure->args == NULL, procedure);

View File

@ -68,7 +68,19 @@ procedural_db_free_entry (gpointer key,
gpointer user_data)
{
if (value)
g_list_free (value);
{
GList *list;
for (list = value; list; list = g_list_next (list))
{
ProcRecord *procedure = list->data;
g_free (procedure->args);
g_free (procedure->values);
}
g_list_free (value);
}
}
void
@ -669,9 +681,9 @@ procedural_db_destroy_args (Argument *args,
}
ProcRecord *
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
procedural_db_init_proc (ProcRecord *procedure,
gint n_arguments,
gint n_return_values)
{
g_return_val_if_fail (procedure != NULL, procedure);
g_return_val_if_fail (procedure->args == NULL, procedure);