Package: workrave
Version: 1.9.4-2
Severity: important
Workrave has a significant memory leak (4GB after two days!) that
occurs only in a non-GNOME build. This is fixed in the upstream git
tree due to a patch I submitted back in March, but the fix did not make
it into 1.9.4.
A copy of my patch is attached.
diff --git a/backend/src/GlibIniConfigurator.cc b/backend/src/GlibIniConfigurator.cc
index e692289..984ae75 100644
--- a/backend/src/GlibIniConfigurator.cc
+++ b/backend/src/GlibIniConfigurator.cc
@@ -97,6 +97,11 @@ GlibIniConfigurator::save(string filename)
config_file.close();
}
+ if (str != NULL)
+ {
+ g_free(str);
+ }
+
TRACE_EXIT();
return error == NULL;
}