Removed double free of method_string in uri->method_string.

2000-05-09  Christopher James Lahey  <clahey@helixcode.com>

	* pcs/cal-factory.c: Removed double free of method_string in
	uri->method_string.

svn path=/trunk/; revision=2942
This commit is contained in:
Christopher James Lahey
2000-05-09 15:23:54 +00:00
committed by Chris Lahey
parent 3ee0a4c49e
commit 144ea8dfcf
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* pcs/cal-factory.c: Removed double free of method_string in
uri->method_string.
2000-05-08 Ettore Perazzoli <ettore@helixcode.com>
* pcs/cal.h: Include "calendar/pcs/evolution-calendar.h" instead

View File

@ -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;