summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-undo-context.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-09-27 00:07:33 +0000
committerDarin Adler <darin@src.gnome.org>2000-09-27 00:07:33 +0000
commite8af12ac65b5f5b4f2a5f055166a5f7d8580e525 (patch)
tree6d65095b33955cc35cf65d535aefeda1fbbefe46 /libnautilus-private/nautilus-undo-context.c
parentd6f51369b565f566af792f02ae21336cd38d18cb (diff)
downloadnautilus-e8af12ac65b5f5b4f2a5f055166a5f7d8580e525.tar.gz
Fix more storage leaks.
* components/tree/nautilus-tree-node.c: (nautilus_tree_node_new): Get rid of extra allocation of node->details that caused a storage leak. * components/tree/nautilus-tree-view.c: (nautilus_tree_view_insert_model_node): Add a g_free. (free_uri_to_node_map_entry), (free_uri_to_hack_node_map_entry), (nautilus_tree_view_destroy): Free the keys of the hash table. (tree_expand_callback), (tree_collapse_callback), (tree_select_row_callback): Added missing g_free. (nautilus_tree_view_item_at): Removed an excess g_strdup. * libnautilus-extensions/nautilus-preference.c: (preference_initialize_if_needed): Destroy the global preference table on exit. (preference_hash_node_free_func): Free the hash key as well as the node value. (preference_register): Use strdup on keys as then are entered into the hash table. (preference_hash_node_lookup_with_registration): Remove the strdup in here since preference_register now handles it. (destroy_global_preference_table): Renamed and simplified the existing unused function. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_destroy), (free_volume): Free the volume itself, not just the fields within it. * src/nautilus-complex-search-bar.c: (nautilus_complex_search_bar_get_location): Added a missing g_free. * src/nautilus-sidebar-tabs.c: (tab_item_destroy_cover), (nautilus_sidebar_tabs_destroy): Free the tab items too, not just the list they are stored in. * src/nautilus-switchable-search-bar.c: (search_bar_preference_changed_callback): Added a missing g_free. * libnautilus-extensions/nautilus-theme.c: (free_default_theme), (nautilus_theme_get_theme_data): Add code to free the default theme on program exit to make leak detection easier. * src/nautilus-main.c: (main): Clean up the memory used by the XML parser on exit to make leak detection easier. * libnautilus/Makefile.am: * libnautilus/nautilus-bonobo-workarounds.c: * libnautilus/nautilus-bonobo-workarounds.h: Added version of bonobo_object_get_epv that shares a single global instance instead of allocating a new one each time it's called. * components/adapter/nautilus-adapter-factory-server.c: (impl_Nautilus_ComponentAdapterFactory__create): * libnautilus-extensions/bonobo-stream-vfs.c: (bonobo_stream_vfs_class_init): * libnautilus-extensions/nautilus-undo-context.c: (impl_Nautilus_Undo_Context__create): * libnautilus-extensions/nautilus-undo-manager.c: (nautilus_undo_manager_initialize_class): * libnautilus/nautilus-undo-transaction.c: (impl_Nautilus_Undo_Transaction__create): * libnautilus/nautilus-view.c: (impl_Nautilus_View__create): * src/nautilus-history-frame.c: (impl_Nautilus_HistoryFrame__create): * src/nautilus-shell.c: (nautilus_shell_get_vepv): * src/nautilus-view-frame-corba.c: (impl_Nautilus_ViewFrame__create): * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame__create): Use the new cover for bonobo_object_get_epv to avoid making lots of copies of it. * src/nautilus-window-menus.c: (get_user_level_image): Formatting tweak. * tools/leak-checker/nautilus-leak-checker.c: Added more "known to allocate and not free on exit" functions.
Diffstat (limited to 'libnautilus-private/nautilus-undo-context.c')
-rw-r--r--libnautilus-private/nautilus-undo-context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-undo-context.c b/libnautilus-private/nautilus-undo-context.c
index cc94a9f02..0d5482688 100644
--- a/libnautilus-private/nautilus-undo-context.c
+++ b/libnautilus-private/nautilus-undo-context.c
@@ -27,8 +27,9 @@
#include "nautilus-undo-context.h"
#include "nautilus-gtk-macros.h"
-#include <gtk/gtksignal.h>
#include <bonobo/bonobo-main.h>
+#include <gtk/gtksignal.h>
+#include <libnautilus/nautilus-bonobo-workarounds.h>
typedef struct {
POA_Nautilus_Undo_Context servant;
@@ -88,7 +89,7 @@ impl_Nautilus_Undo_Context__create (NautilusUndoContext *bonobo_object,
servant = g_new0 (impl_POA_Nautilus_Undo_Context, 1);
servant->servant.vepv = &vepv;
- vepv.Bonobo_Unknown_epv = bonobo_object_get_epv ();
+ vepv.Bonobo_Unknown_epv = nautilus_bonobo_object_get_epv ();
POA_Nautilus_Undo_Context__init ((PortableServer_Servant) servant, ev);
gtk_signal_connect (GTK_OBJECT (bonobo_object), "destroy",