diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-19 13:10:20 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-19 13:10:20 (GMT) |
commit | bb5ea194600d5ae09b18a147420f4fc42c0808df (patch) | |
tree | 7f0390be29773a1159e75b4456a79ecb361281ac /shell/ev-page-action.c | |
parent | c7c3efc21f970868c633bc87b03259b9a7178eff (diff) |
Fix memory leak
* cut-n-paste/recent-files/egg-recent-view-gtk.c:
(egg_recent_view_gtk_finalize):
Fix memory leak
* cut-n-paste/toolbar-editor/Makefile.am:
Fix location of cursor icon.
* pdf/ev-poppler.cc:
* shell/ev-page-action.c: (build_new_tree_cb), (match_selected_cb),
(display_completion_text), (match_completion):
* shell/ev-sidebar-links.c: (ev_sidebar_links_dispose),
(selection_changed_callback), (create_loading_model),
(print_section_cb), (links_page_num_func),
(update_page_callback_foreach):
* shell/ev-window.c: (ev_window_dispose):
Small memory fixes. Links model now store objects instead
of pointers to improve memory management.
Diffstat (limited to 'shell/ev-page-action.c')
-rw-r--r-- | shell/ev-page-action.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index ee4802a..7975c8a 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -306,6 +306,9 @@ build_new_tree_cb (GtkTreeModel *model, -1); } + if (link) + g_object_unref (link); + return FALSE; } @@ -346,6 +349,9 @@ match_selected_cb (GtkEntryCompletion *completion, g_signal_emit (proxy, widget_signals[WIDGET_ACTIVATE_LINK], 0, link); + if (link) + g_object_unref (link); + gtk_tree_iter_free (iter); return TRUE; @@ -370,6 +376,9 @@ display_completion_text (GtkCellLayout *cell_layout, -1); g_object_set (renderer, "text", ev_link_get_title (link), NULL); + + if (link) + g_object_unref (link); gtk_tree_iter_free (iter); } @@ -395,6 +404,7 @@ match_completion (GtkEntryCompletion *completion, if (link) { text = ev_link_get_title (link); + g_object_unref (link); } gtk_tree_iter_free (iter); |