[tracker/direct-access: 14/40] libtracker-direct, libtracker-sparql: Make sure Connection is kept alife longer than Cursor
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/direct-access: 14/40] libtracker-direct, libtracker-sparql: Make sure Connection is kept alife longer than Cursor
- Date: Fri, 13 Aug 2010 11:46:30 +0000 (UTC)
commit 9fd00ae2047a95542837579bcc87d85835810f2e
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Jul 8 13:54:10 2010 +0200
libtracker-direct, libtracker-sparql: Make sure Connection is kept alife longer than Cursor
src/libtracker-direct/tracker-connection.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-direct/tracker-connection.vala b/src/libtracker-direct/tracker-connection.vala
index d68a424..444bb85 100644
--- a/src/libtracker-direct/tracker-connection.vala
+++ b/src/libtracker-direct/tracker-connection.vala
@@ -35,6 +35,8 @@ public class Tracker.Direct.Connection : Tracker.Sparql.Connection {
public override Sparql.Cursor query (string sparql) throws GLib.Error {
var query_object = new Sparql.Query (sparql);
- return query_object.execute_cursor ();
+ var cursor = query_object.execute_cursor ();
+ cursor.connection = this;
+ return cursor;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]