|
From: Chris F. <cd...@fo...> - 2010-08-25 03:41:16
|
Hi Adenilson, Could you apply this patch to libgcal-0.9.5 and release 0.9.6 soon? If libgcal calls xmlCleanupParser() it ends up freeing all the schema types internally, and if other code is using them (such as opensync and the xmlformat plugin), it causes a segfault. Thanks, - Chris Subject: [PATCH] Don't cleanup the entire libxml parser... other app code may still be using it --- src/gcal_parser.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/gcal_parser.c b/src/gcal_parser.c index 437d6ac..f1aa13c 100644 --- a/src/gcal_parser.c +++ b/src/gcal_parser.c @@ -103,7 +103,6 @@ int get_the_url(char *data, int length, char **url) result = 0; xmlFreeDoc(doc); - xmlCleanupParser(); exit: return result; @@ -160,7 +159,6 @@ int get_edit_url(char *data, int length, char **url) result = 0; xmlFreeDoc(doc); - xmlCleanupParser(); exit: return result; @@ -183,7 +181,6 @@ int get_edit_etag(char *data, int length, char **url) result = 0; xmlFreeDoc(doc); - xmlCleanupParser(); exit: return result; -- 1.7.0.3 |