aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/cal-client/cal-client.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 6285632fcb..c42fdc0859 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-28 JP Rosevear <jpr@ximian.com>
+
+ * cal-client/cal-client.c (cal_client_open_calendar): init the
+ execption rather than freeing it
+
2001-09-28 Rodrigo Moya <rodrigo@ximian.com>
* cal-client/cal-client.c (cal_client_construct): use bonobo-exception
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c
index 86b3cc8a05..2e82dcbfe0 100644
--- a/calendar/cal-client/cal-client.c
+++ b/calendar/cal-client/cal-client.c
@@ -755,12 +755,14 @@ cal_client_open_calendar (CalClient *client, const char *str_uri, gboolean only_
priv->uri = g_strdup (str_uri);
for (f = priv->factories; f; f = f->next) {
- CORBA_exception_free (&ev);
+ CORBA_exception_init (&ev);
GNOME_Evolution_Calendar_CalFactory_open (f->data, str_uri,
only_if_exists,
corba_listener, &ev);
if (!BONOBO_EX (&ev))
break;
+
+ CORBA_exception_free (&ev);
}
if (BONOBO_EX (&ev)) {