]> Dogcows Code - chaz/openbox/blobdiff - src/Resource.cc
fixed memory leaks for strftime_format and rootcommand
[chaz/openbox] / src / Resource.cc
index cff9bd38590ff934925d55b5805e3f7dca9a4bb0..2a678f89dafde320e75491ca3741599e424a84ba 100644 (file)
@@ -85,6 +85,13 @@ bool Resource::load() {
   return true;
 }
 
+void Resource::create() {
+  if (m_database != NULL)
+    XrmDestroyDatabase(m_database);
+  m_modified = false;
+  ASSERT(NULL != (m_database = XrmGetStringDatabase("")));
+}
+
 void Resource::setValue(const std::string &rname, bool value) {
   ASSERT(m_database != NULL);
 
This page took 0.019887 seconds and 4 git commands to generate.