|
From: Adenilson C. <cav...@gm...> - 2010-08-25 17:52:18
|
Chris > > But I did test it in opensync, and it fixes a segfault that took me about > 6 hours to find. When you call xmlCleanupParser(), it frees the type > table, which may be in use by other code. Inside schema context pointers, > there is a baseType pointer which points to a global list of types. > These types disappear when some other code calls xmlCleanupParser(). I see. > > Perhaps libgcal needs a cleanup function of its own, that the application > should call when closing. i.e. the sample apps should call libgcal's > cleanup function, which then calls xmlCleanupParser(). > Maybe adding a call to it when the gcal_t context is destroyed? Cheers Adenilson |