diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-06-14 19:15:37 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-06-14 19:15:37 +0800 |
commit | 9db42f6c20a456f5c910fe419cf23901deb98df3 (patch) | |
tree | ff837331b307b741e380810e17d48cc4a7eb8144 /src/bookmarks | |
parent | a01ebeee69c4781df8b34f2928843417f58d2a15 (diff) | |
download | gsoc2013-epiphany-9db42f6c20a456f5c910fe419cf23901deb98df3.tar gsoc2013-epiphany-9db42f6c20a456f5c910fe419cf23901deb98df3.tar.gz gsoc2013-epiphany-9db42f6c20a456f5c910fe419cf23901deb98df3.tar.bz2 gsoc2013-epiphany-9db42f6c20a456f5c910fe419cf23901deb98df3.tar.lz gsoc2013-epiphany-9db42f6c20a456f5c910fe419cf23901deb98df3.tar.xz gsoc2013-epiphany-9db42f6c20a456f5c910fe419cf23901deb98df3.tar.zst gsoc2013-epiphany-9db42f6c20a456f5c910fe419cf23901deb98df3.zip |
Use g_list_prepend instead of g_list_append, and fix mem leaks along the
2003-06-14 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-topic-action.c: (build_bookmarks_menu),
(build_topics_menu):
* src/language-dialog.c: (language_editor_remove_button_clicked_cb):
* src/pdm-dialog.c: (pdm_dialog_remove_button_clicked_cb):
* embed/downloader-view.c: (download_dialog_abort_cb):
Use g_list_prepend instead of g_list_append, and fix mem leaks
along the way.
Diffstat (limited to 'src/bookmarks')
-rw-r--r-- | src/bookmarks/ephy-topic-action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index f5afa6155..8a6abed4e 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -199,11 +199,11 @@ build_bookmarks_menu (EphyTopicAction *action, EphyNode *node) for (i = 0; i < children->len; ++i) { - node_list = g_list_append (node_list, + node_list = g_list_prepend (node_list, g_ptr_array_index (children, i)); } - g_list_sort (node_list, (GCompareFunc)sort_bookmarks); + node_list = g_list_sort (node_list, (GCompareFunc)sort_bookmarks); for (l = g_list_first (node_list); l != NULL; l = g_list_next (l)) { @@ -308,11 +308,11 @@ build_topics_menu (EphyTopicAction *action, EphyNode *node) for (i = 0; i < children->len; ++i) { - node_list = g_list_append (node_list, + node_list = g_list_prepend (node_list, g_ptr_array_index (children, i)); } - g_list_sort (node_list, (GCompareFunc)sort_topics); + node_list = g_list_sort (node_list, (GCompareFunc)sort_topics); for (l = g_list_first (node_list); l != NULL; l = g_list_next (l)) { |