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-window.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-window.c')
-rw-r--r-- | shell/ev-window.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 693e069..81e4f31 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2417,6 +2417,12 @@ ev_window_dispose (GObject *object) priv->recent_model = NULL; } + if (priv->recent_view) { + g_object_unref (priv->recent_view); + priv->recent_view = NULL; + } + + if (priv->ui_manager) { g_object_unref (priv->ui_manager); priv->ui_manager = NULL; |