Commit 181c8dec authored by Jussi Kukkonen's avatar Jussi Kukkonen

temporary fix for libxml2 problem

I have no idea why freeing the xml document segfaults every second call...
I obviously need to improve my libxml2 understanding
parent e0c3ea6d
......@@ -170,7 +170,6 @@ gboolean geoclue_position_current_position(GeocluePosition *obj, gdouble* OUT_la
xml = geoclue_position_get_hostip_xml();
doc = xmlParseDoc (xml);
g_free(xml);
if (doc) {
xpathCtx = xmlXPathNewContext(doc);
......@@ -196,9 +195,10 @@ gboolean geoclue_position_current_position(GeocluePosition *obj, gdouble* OUT_la
}
xmlXPathFreeContext(xpathCtx);
}
xmlFreeDoc(doc);
}
//FIXME: I have no idea why this segfaults every second call??
//xmlFreeDoc(doc);
}
g_free(xml);
return success;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment