aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-09 23:23:54 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-09 23:23:54 +0800
commit144ea8dfcf055ed0fdede8cdaf112d843fc228af (patch)
tree12f464f0908063fbc26cf00e27de1520921165d6 /calendar/pcs
parent3ee0a4c49eff58eabeb0aa25362c533e3e88d09e (diff)
downloadgsoc2013-evolution-144ea8dfcf055ed0fdede8cdaf112d843fc228af.tar
gsoc2013-evolution-144ea8dfcf055ed0fdede8cdaf112d843fc228af.tar.gz
gsoc2013-evolution-144ea8dfcf055ed0fdede8cdaf112d843fc228af.tar.bz2
gsoc2013-evolution-144ea8dfcf055ed0fdede8cdaf112d843fc228af.tar.lz
gsoc2013-evolution-144ea8dfcf055ed0fdede8cdaf112d843fc228af.tar.xz
gsoc2013-evolution-144ea8dfcf055ed0fdede8cdaf112d843fc228af.tar.zst
gsoc2013-evolution-144ea8dfcf055ed0fdede8cdaf112d843fc228af.zip
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
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal-factory.c4
1 files changed, 3 insertions, 1 deletions
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;