plugged memleaks

--Sven
This commit is contained in:
Sven Neumann 2000-02-23 22:31:26 +00:00
parent ebf05daf38
commit c4a723b3b5
21 changed files with 164 additions and 220 deletions

View File

@ -1,3 +1,7 @@
Wed Feb 23 23:31:07 CET 2000 Sven Neumann <sven@gimp.org>
* app/plug_in.c: plugged memleaks
2000-02-24 Tor Lillqvist <tml@iki.fi>
* libgimp/gimp.h (Win32): Include <stdlib.h> for __argc and__argv.

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;

View File

@ -404,13 +404,9 @@ plug_in_init (void)
plug_in_def = tmp->data;
tmp = tmp->next;
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def->prog);
g_free (plug_in_def);
plug_in_def_free (plug_in_def, FALSE);
}
g_slist_free (plug_in_defs);
}
@ -654,14 +650,15 @@ plug_in_def_free (PlugInDef *plug_in_def,
if (plug_in_def->locale_domain) g_free (plug_in_def->locale_domain);
if (plug_in_def->locale_path) g_free (plug_in_def->locale_path);
if (free_proc_defs && plug_in_def->proc_defs)
if (free_proc_defs)
{
for (list = plug_in_def->proc_defs; list; list = list->next)
g_free (list->data);
g_slist_free (plug_in_def->proc_defs);
plug_in_proc_def_destroy ((PlugInProcDef *)(list->data), FALSE);
}
if (plug_in_def->proc_defs)
g_slist_free (plug_in_def->proc_defs);
g_free (plug_in_def);
}
@ -716,11 +713,11 @@ plug_in_def_add (PlugInDef *plug_in_def)
{
/* Use cached plug-in entry */
tmp->data = plug_in_def;
plug_in_def_free (tplug_in_def, FALSE);
plug_in_def_free (tplug_in_def, TRUE);
}
else
{
plug_in_def_free (plug_in_def, FALSE);
plug_in_def_free (plug_in_def, TRUE);
}
return;