From: <svn...@op...> - 2010-08-26 19:33:39
|
Author: cdfrey Date: Thu Aug 26 21:33:29 2010 New Revision: 6101 URL: http://www.opensync.org/changeset/6101 Log: Fix segfault when using libxml2 Should not do a general, global memory cleanup in a local delete function. The libxml2 library has a global list of schema type pointers that are freed when calling xmlCleanupParser(). If other code, such as opensync itself, is still relying on these schema types, a segfault will occur. Leave the global cleanups for the applications. Modified: plugins/google-calendar/src/xslt_aux.h Modified: plugins/google-calendar/src/xslt_aux.h ============================================================================== --- plugins/google-calendar/src/xslt_aux.h Tue Aug 17 04:03:05 2010 (r6100) +++ plugins/google-calendar/src/xslt_aux.h Thu Aug 26 21:33:29 2010 (r6101) @@ -175,8 +175,6 @@ xmlFree(ctx->xml_str); if (ctx->cur) { xsltFreeStylesheet(ctx->cur); - xsltCleanupGlobals(); - xmlCleanupParser(); } exit: |