aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Felipe Contreras <felipe.contreras@gmail.com>2013-09-30 11:04:21 -0500
committerGravatar Felipe Contreras <felipe.contreras@gmail.com>2013-11-02 07:20:01 -0600
commitfd733a4f5c41948b895e37daf9bc0912f695ae59 (patch)
tree4892ace1eacdde462d844f76394fa5ad1ed6ea55 /lib
parent1eecfbd51a8ada5d7cecee6a10912b6f075483be (diff)
query: bind queries to database objects
The queries don't really work after a database is closed, and we would like them to be freed if the database is destroyed. Acknowledged-by: David Bremner <david@tethera.net> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/query.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/query.cc b/lib/query.cc
index 69668a45..ec60e2e4 100644
--- a/lib/query.cc
+++ b/lib/query.cc
@@ -80,7 +80,7 @@ notmuch_query_create (notmuch_database_t *notmuch,
if (_debug_query ())
fprintf (stderr, "Query string is:\n%s\n", query_string);
- query = talloc (NULL, notmuch_query_t);
+ query = talloc (notmuch, notmuch_query_t);
if (unlikely (query == NULL))
return NULL;