[tracker/direct-access: 29/60] 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: 29/60] libtracker-direct, libtracker-sparql: Make sure Connection is kept alife longer than Cursor
- Date: Fri, 6 Aug 2010 11:56:00 +0000 (UTC)
commit c232517fb2e7c77675d727642b9e228209ad37d1
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]