tracker r1584 - in branches/xesam-support: . src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1584 - in branches/xesam-support: . src/trackerd
- Date: Thu, 5 Jun 2008 08:21:16 +0000 (UTC)
Author: pvanhoof
Date: Thu Jun 5 08:21:15 2008
New Revision: 1584
URL: http://svn.gnome.org/viewvc/tracker?rev=1584&view=rev
Log:
2008-06-05 Philip Van Hoof <pvanhoof gnome org>
* src/trackerd/tracker-xesam-live-search.c: Fixed a crash for searches
that yield no results.
Modified:
branches/xesam-support/ChangeLog
branches/xesam-support/src/trackerd/tracker-xesam-live-search.c
Modified: branches/xesam-support/src/trackerd/tracker-xesam-live-search.c
==============================================================================
--- branches/xesam-support/src/trackerd/tracker-xesam-live-search.c (original)
+++ branches/xesam-support/src/trackerd/tracker-xesam-live-search.c Thu Jun 5 08:21:15 2008
@@ -653,8 +653,10 @@
if (result_set) {
get_hit_data (self, result_set, hits, g_strv_length(fields));
g_object_unref (result_set);
+ } else {
+ *hits = g_ptr_array_new ();
}
-
+
g_free (value);
}
}
@@ -710,7 +712,10 @@
if (result_set) {
get_hit_data (self, result_set, hits, g_strv_length(fields));
g_object_unref (result_set);
+ } else {
+ *hits = g_ptr_array_new ();
}
+
g_free (value);
}
}
@@ -777,6 +782,8 @@
if (result_set) {
get_hit_data (self, result_set, hit_data, g_strv_length (fields));
g_object_unref (result_set);
+ } else {
+ *hit_data = g_ptr_array_new ();
}
}
}
@@ -817,6 +824,8 @@
if (result_set) {
get_hit_data (self, result_set, hit_data, g_strv_length(fields));
g_object_unref (result_set);
+ } else {
+ *hit_data = g_ptr_array_new ();
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]