From 144ea8dfcf055ed0fdede8cdaf112d843fc228af Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 9 May 2000 15:23:54 +0000 Subject: Removed double free of method_string in uri->method_string. 2000-05-09 Christopher James Lahey * pcs/cal-factory.c: Removed double free of method_string in uri->method_string. svn path=/trunk/; revision=2942 --- calendar/ChangeLog | 5 +++++ calendar/pcs/cal-factory.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 6b862dea88..507bf06faf 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2000-05-09 Christopher James Lahey + + * pcs/cal-factory.c: Removed double free of method_string in + uri->method_string. + 2000-05-08 Ettore Perazzoli * pcs/cal.h: Include "calendar/pcs/evolution-calendar.h" instead diff --git a/calendar/pcs/cal-factory.c b/calendar/pcs/cal-factory.c index 1112245184..9e60815805 100644 --- a/calendar/pcs/cal-factory.c +++ b/calendar/pcs/cal-factory.c @@ -215,6 +215,9 @@ queue_load_create_job (CalFactory *factory, const char *uri, Evolution_Calendar_ Evolution_Calendar_Listener listener_copy; gboolean result; + if ((!uri) || (!*uri)) + return; + CORBA_exception_init (&ev); result = CORBA_Object_is_nil (listener, &ev); if (ev._major != CORBA_NO_EXCEPTION) { @@ -329,7 +332,6 @@ launch_backend_for_uri (CalFactory *factory, GnomeVFSURI *uri, Evolution_Calenda method = uri->method_string; type = g_hash_table_lookup (priv->methods, method); - g_free (method); if (!type) { CORBA_Environment ev; -- cgit