gracefully handle a NULL link. (mru_destruct): plugged a memory leak.
2008-01-23 Sven Neumann <sven@gimp.org> * plug-ins/imagemap/imap_mru.c (mru_remove_link): gracefully handle a NULL link. (mru_destruct): plugged a memory leak. * plug-ins/imagemap/imap_about.c: use "program-name" instead of "name". svn path=/trunk/; revision=24686
This commit is contained in:
parent
ca5ffa5b3f
commit
6e4e25035b
3 changed files with 16 additions and 3 deletions
|
|
@ -1,3 +1,12 @@
|
|||
2008-01-23 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/imagemap/imap_mru.c (mru_remove_link): gracefully
|
||||
handle a NULL link.
|
||||
(mru_destruct): plugged a memory leak.
|
||||
|
||||
* plug-ins/imagemap/imap_about.c: use "program-name" instead
|
||||
of "name".
|
||||
|
||||
2008-01-23 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimpimagemaptool.h: don't #include <gegl.h>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ do_about_dialog(void)
|
|||
|
||||
dialog = g_object_new (GTK_TYPE_ABOUT_DIALOG,
|
||||
"transient-for", get_dialog(),
|
||||
"name", _("Image Map Plug-In"),
|
||||
"program-name", _("Image Map Plug-In"),
|
||||
"version", "2.3",
|
||||
"authors", authors,
|
||||
"copyright",
|
||||
|
|
|
|||
|
|
@ -42,14 +42,18 @@ void
|
|||
mru_destruct(MRU_t *mru)
|
||||
{
|
||||
g_list_foreach(mru->list, (GFunc) g_free, NULL);
|
||||
g_list_free (mru->list);
|
||||
g_free(mru);
|
||||
}
|
||||
|
||||
static void
|
||||
mru_remove_link(MRU_t *mru, GList *link)
|
||||
{
|
||||
g_free(link->data);
|
||||
mru->list = g_list_remove_link(mru->list, link);
|
||||
if (link)
|
||||
{
|
||||
g_free(link->data);
|
||||
mru->list = g_list_remove_link(mru->list, link);
|
||||
}
|
||||
}
|
||||
|
||||
static GList*
|
||||
|
|
|
|||
Loading…
Reference in a new issue