From a9a8c3a3848ef0e4a78c5b7c0b8bb9dce849c3cc Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 25 Nov 2000 07:31:24 +0000 Subject: Plug leaks of the fullname and fulldefaultname. 2000-11-25 Federico Mena Quintero * 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 --- shell/e-shell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell/e-shell.c') 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; -- cgit v1.2.3