diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-19 01:33:07 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-19 01:33:07 (GMT) |
commit | 9d27e7230863e75f2530e4942fd6a0c19107d30f (patch) | |
tree | d48fbfbd1a24110347969769300a0009ba18a20d /lib | |
parent | 6c9c79f7cd5e86a5d90231f6b2f7ed2db9b7886f (diff) |
Various small fixes, mostly memory leaks. Thanks to valgrind.
* lib/ev-file-helpers.c: (ev_file_helpers_shutdown):
* shell/ev-sidebar-links.c: (create_loading_model):
* shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose):
* shell/ev-view.c: (ev_view_set_document):
* shell/ev-window.c: (ev_window_dispose):
Various small fixes, mostly memory leaks. Thanks to valgrind.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ev-file-helpers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ev-file-helpers.c b/lib/ev-file-helpers.c index b093853..ae8aae5 100644 --- a/lib/ev-file-helpers.c +++ b/lib/ev-file-helpers.c @@ -80,8 +80,9 @@ ev_file_helpers_init (void) void ev_file_helpers_shutdown (void) -{ - rmdir (tmp_dir); +{ + if (tmp_dir != NULL) + rmdir (tmp_dir); g_free (tmp_dir); g_free (dot_dir); |