aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-10-26 15:13:00 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-10-26 15:13:00 +0800
commit1a5179564e8af50a8585cab6209ad51f0deb98d3 (patch)
tree7ec27603c0f839e7b0144761beb990cf3de77cd2 /calendar/pcs
parent92e4146738b0726cae3ed93feb51340939328463 (diff)
downloadgsoc2013-evolution-1a5179564e8af50a8585cab6209ad51f0deb98d3.tar
gsoc2013-evolution-1a5179564e8af50a8585cab6209ad51f0deb98d3.tar.gz
gsoc2013-evolution-1a5179564e8af50a8585cab6209ad51f0deb98d3.tar.bz2
gsoc2013-evolution-1a5179564e8af50a8585cab6209ad51f0deb98d3.tar.lz
gsoc2013-evolution-1a5179564e8af50a8585cab6209ad51f0deb98d3.tar.xz
gsoc2013-evolution-1a5179564e8af50a8585cab6209ad51f0deb98d3.tar.zst
gsoc2013-evolution-1a5179564e8af50a8585cab6209ad51f0deb98d3.zip
Get a fresh CORBA_Environment for every CORBA call. Hopefully will fix
2001-10-26 Federico Mena Quintero <federico@ximian.com> * pcs/cal.c (cal_construct): Get a fresh CORBA_Environment for every CORBA call. Hopefully will fix #11978, but I'm not sure about what else could be happening. (cal_get_password): Free the exception. svn path=/trunk/; revision=14126
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/pcs/cal.c b/calendar/pcs/cal.c
index cee41fd6d9..f493c4a4fc 100644
--- a/calendar/pcs/cal.c
+++ b/calendar/pcs/cal.c
@@ -52,7 +52,7 @@ impl_Cal_get_uri (PortableServer_Servant servant,
{
Cal *cal;
CalPrivate *priv;
- char *str_uri;
+ const char *str_uri;
CORBA_char *str_uri_copy;
cal = CAL (bonobo_object_from_servant (servant));
@@ -532,7 +532,10 @@ cal_construct (Cal *cal,
return NULL;
}
+ CORBA_exception_free (&ev);
+
/* obtain the WombatClient interface */
+ CORBA_exception_init (&ev);
priv->wombat_client = Bonobo_Unknown_queryInterface (
priv->listener,
"IDL:GNOME/Evolution/WombatClient:1.0",
@@ -819,6 +822,8 @@ cal_get_password (Cal *cal, const char *prompt, const char *key)
return NULL;
}
+ CORBA_exception_free (&ev);
+
return pwd;
}