mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
Plug a couple of leaks when removing data from a bookmark.
2006-08-08 Emmanuele Bassi <ebassi@gnome.org> * glib/gbookmarkfile.c (g_bookmark_file_remove_group) (g_bookmark_file_set_app_info): Plug a couple of leaks when removing data from a bookmark.
This commit is contained in:
parent
3050782a63
commit
efa3ee01de
@ -1,3 +1,9 @@
|
|||||||
|
2006-08-08 Emmanuele Bassi <ebassi@gnome.org>
|
||||||
|
|
||||||
|
* glib/gbookmarkfile.c (g_bookmark_file_remove_group)
|
||||||
|
(g_bookmark_file_set_app_info): Plug a couple of leaks
|
||||||
|
when removing data from a bookmark.
|
||||||
|
|
||||||
2006-08-05 Matthias Clasen <mclasen@redhat.com>
|
2006-08-05 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gbookmarkfile.c (find_file_in_data_dirs): Correct the
|
* glib/gbookmarkfile.c (find_file_in_data_dirs): Correct the
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2006-08-08 Emmanuele Bassi <ebassi@gnome.org>
|
||||||
|
|
||||||
|
* glib/gbookmarkfile.c (g_bookmark_file_remove_group)
|
||||||
|
(g_bookmark_file_set_app_info): Plug a couple of leaks
|
||||||
|
when removing data from a bookmark.
|
||||||
|
|
||||||
2006-08-05 Matthias Clasen <mclasen@redhat.com>
|
2006-08-05 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gbookmarkfile.c (find_file_in_data_dirs): Correct the
|
* glib/gbookmarkfile.c (find_file_in_data_dirs): Correct the
|
||||||
|
@ -2842,6 +2842,7 @@ g_bookmark_file_remove_group (GBookmarkFile *bookmark,
|
|||||||
if (strcmp (l->data, group) == 0)
|
if (strcmp (l->data, group) == 0)
|
||||||
{
|
{
|
||||||
item->metadata->groups = g_list_remove_link (item->metadata->groups, l);
|
item->metadata->groups = g_list_remove_link (item->metadata->groups, l);
|
||||||
|
g_free (l->data);
|
||||||
g_list_free_1 (l);
|
g_list_free_1 (l);
|
||||||
|
|
||||||
item->modified = time (NULL);
|
item->modified = time (NULL);
|
||||||
@ -3248,6 +3249,7 @@ g_bookmark_file_set_app_info (GBookmarkFile *bookmark,
|
|||||||
{
|
{
|
||||||
item->metadata->applications = g_list_remove (item->metadata->applications, ai);
|
item->metadata->applications = g_list_remove (item->metadata->applications, ai);
|
||||||
g_hash_table_remove (item->metadata->apps_by_name, ai->name);
|
g_hash_table_remove (item->metadata->apps_by_name, ai->name);
|
||||||
|
bookmark_app_info_free (ai);
|
||||||
|
|
||||||
item->modified = time (NULL);
|
item->modified = time (NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user