tracker r2163 - branches/indexer-split/src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2163 - branches/indexer-split/src/trackerd
- Date: Wed, 27 Aug 2008 08:41:03 +0000 (UTC)
Author: pvanhoof
Date: Wed Aug 27 08:41:03 2008
New Revision: 2163
URL: http://svn.gnome.org/viewvc/tracker?rev=2163&view=rev
Log:
Another attempt, valgrind was still telling there was an error
Modified:
branches/indexer-split/src/trackerd/tracker-daemon.c
Modified: branches/indexer-split/src/trackerd/tracker-daemon.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-daemon.c (original)
+++ branches/indexer-split/src/trackerd/tracker-daemon.c Wed Aug 27 08:41:03 2008
@@ -199,15 +199,12 @@
priv->last_stats = new_stats;
if (values && values->len > 0) {
- ret = (GStrv) g_malloc (sizeof (gchar*) * values->len + 1);
+ ret = (GStrv) g_malloc0 (sizeof (gchar*) * (values->len + 2));
for (i = 0 ; i < values->len; i++)
ret[i] = g_ptr_array_index (values, i);
- ret[i] = NULL;
g_ptr_array_free (values, TRUE);
- } else {
- ret = (GStrv) g_malloc (sizeof (gchar*) * 1);
- ret[0] = NULL;
- }
+ } else
+ ret = (GStrv) g_malloc0 (sizeof (gchar*) * 1);
g_signal_emit (daemon, signals[DAEMON_STATS_CHANGED], 0, ret);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]