diff rdf/SimpleSPARQLQuery.cpp @ 505:db398832518b

* Avoid a sometime crash on exit, by simply not deleting stuff
author Chris Cannam
date Fri, 05 Dec 2008 11:24:13 +0000
parents 438f4e295a9c
children 0944d13689b2
line wrap: on
line diff
--- a/rdf/SimpleSPARQLQuery.cpp	Fri Dec 05 11:09:44 2008 +0000
+++ b/rdf/SimpleSPARQLQuery.cpp	Fri Dec 05 11:24:13 2008 +0000
@@ -94,6 +94,11 @@
 
 WredlandWorldWrapper::~WredlandWorldWrapper()
 {
+/*!!! This is a static singleton; destroying it while there are
+      queries outstanding can be problematic, it appears, and since
+      the storage is non-persistent there shouldn't be any need to
+      destroy it explicitly, except for the sake of tidiness.
+
     while (!m_ownModelUris.empty()) {
         librdf_free_model(m_ownModelUris.begin()->second);
         m_ownModelUris.erase(m_ownModelUris.begin());
@@ -105,6 +110,7 @@
     if (m_defaultModel) librdf_free_model(m_defaultModel);
     if (m_defaultStorage) librdf_free_storage(m_defaultStorage);
     if (m_world) librdf_free_world(m_world);
+*/
 }
 
 bool