[tracker] SPARQL: Fix memory leak due to reference cycle
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] SPARQL: Fix memory leak due to reference cycle
- Date: Thu, 1 Apr 2010 23:54:06 +0000 (UTC)
commit 2b3952c5a983a5eb9413c11e6bbcdabfffb13047
Author: Jürg Billeter <j bitron ch>
Date: Fri Apr 2 01:50:51 2010 +0200
SPARQL: Fix memory leak due to reference cycle
src/libtracker-data/tracker-sparql-expression.vala | 2 +-
src/libtracker-data/tracker-sparql-pattern.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-expression.vala b/src/libtracker-data/tracker-sparql-expression.vala
index 0f83f0d..37a2fea 100644
--- a/src/libtracker-data/tracker-sparql-expression.vala
+++ b/src/libtracker-data/tracker-sparql-expression.vala
@@ -18,7 +18,7 @@
*/
class Tracker.Sparql.Expression : Object {
- Query query;
+ weak Query query;
const string XSD_NS = "http://www.w3.org/2001/XMLSchema#";
const string FN_NS = "http://www.w3.org/2005/xpath-functions#";
diff --git a/src/libtracker-data/tracker-sparql-pattern.vala b/src/libtracker-data/tracker-sparql-pattern.vala
index 364573c..7cea75b 100644
--- a/src/libtracker-data/tracker-sparql-pattern.vala
+++ b/src/libtracker-data/tracker-sparql-pattern.vala
@@ -142,8 +142,8 @@ namespace Tracker.Sparql {
}
class Tracker.Sparql.Pattern : Object {
- Query query;
- Expression expression;
+ weak Query query;
+ weak Expression expression;
int counter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]