[tracker/rss-enclosures] libtracker-fts: Fix crash on thread cleanup
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-fts: Fix crash on thread cleanup
- Date: Mon, 3 May 2010 00:39:48 +0000 (UTC)
commit b13e9df8d3991573827a09c4c3b42a4752b7bb0c
Author: Jürg Billeter <j bitron ch>
Date: Fri Apr 16 11:48:59 2010 +0200
libtracker-fts: Fix crash on thread cleanup
Do not depend on order of TLS destruction.
src/libtracker-fts/tracker-fts.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index 5d7e397..18ef56c 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -3381,7 +3381,7 @@ static int constructVtab(
FTSTRACE(("FTS3 Connect %p\n", v));
- g_static_private_set (&tracker_fts_vtab_key, v, NULL);
+ g_static_private_set (&tracker_fts_vtab_key, v, (GDestroyNotify) fulltext_vtab_destroy);
return SQLITE_OK;
}
@@ -7828,10 +7828,6 @@ int tracker_fts_init(sqlite3 *db, int create){
}
void tracker_fts_shutdown (void){
- fulltext_vtab *v = g_static_private_get (&tracker_fts_vtab_key);
-
- fulltext_vtab_destroy(v);
-
g_static_private_set (&tracker_fts_vtab_key, NULL, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]