aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-11-25 15:31:24 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-11-25 15:31:24 +0800
commita9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc (patch)
treeaede2be05c35803aaaf54e43643150d0fbe67835 /shell/e-shell.c
parent17e51fc56112e8fd002d32b5d22c2684cce2fb9a (diff)
downloadgsoc2013-evolution-a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc.tar
gsoc2013-evolution-a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc.tar.gz
gsoc2013-evolution-a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc.tar.bz2
gsoc2013-evolution-a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc.tar.lz
gsoc2013-evolution-a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc.tar.xz
gsoc2013-evolution-a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc.tar.zst
gsoc2013-evolution-a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc.zip
Plug leaks of the fullname and fulldefaultname.
2000-11-25 Federico Mena Quintero <federico@helixcode.com> * e-setup.c (check_dir_recur): Plug leaks of the fullname and fulldefaultname. (check_evolution_directory): Plug leaks of defaultdir and newfiles and the list's data; made the code have a single return point. * e-shell.c (e_shell_restore_from_settings): Plug leak of prefix. (corba_class_init): Plug leak; we were not assigning the vepv->_base_epv. * evolution-storage.c (corba_class_init): Likewise. * evolution-local-storage.c (corba_class_init): Likewise. svn path=/trunk/; revision=6667
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index faad9979f1..b067514226 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -586,6 +586,7 @@ corba_class_init (void)
epv->createStorageSetView = impl_Shell_create_storage_set_view;
vepv = &shell_vepv;
+ vepv->_base_epv = base_epv;
vepv->Bonobo_Unknown_epv = bonobo_object_get_epv ();
vepv->GNOME_Evolution_Shell_epv = epv;
}
@@ -1017,6 +1018,8 @@ e_shell_restore_from_settings (EShell *shell)
prefix = g_strdup_printf ("=%s/config/Shell=/Views/NumberOfViews",
priv->local_directory);
num_views = gnome_config_get_int (prefix);
+ g_free (prefix);
+
if (num_views == 0)
return FALSE;