[maemo-commits] [maemo-commits] r15986 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Sep 3 15:45:12 EEST 2008
- Previous message: [maemo-commits] r15985 - in projects/haf/branches/hildon-thumbnail/daemonize: . daemon
- Next message: [maemo-commits] r15987 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof
Date: 2008-09-03 15:45:11 +0300 (Wed, 03 Sep 2008)
New Revision: 15986
Modified:
projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
Log:
Bugfixes
Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 12:43:00 UTC (rev 15985)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 12:45:11 UTC (rev 15986)
@@ -72,7 +72,7 @@
static void
get_some_file_infos (const gchar *path, gchar **mime_type, gchar **thumb_path, gboolean *has_thumb)
{
- gchar *content_type, *tp;
+ const gchar *content_type, *tp;
GFileInfo *info;
GFile *file;
GError *error = NULL;
@@ -203,7 +203,7 @@
GHashTableIter iter;
gpointer key, value;
gboolean had_error = FALSE;
- GList *thumb_items, *copy;
+ GList *thumb_items = NULL, *copy;
GStrv cached_items;
g_mutex_lock (priv->mutex);
@@ -236,6 +236,7 @@
g_hash_table_replace (hash, mime_type, urls_for_mime);
} else if (has_thumb)
thumb_items = g_list_prepend (thumb_items, urls[i]);
+
i++;
}
@@ -248,6 +249,7 @@
cached_items[i] = g_strdup (copy->data);
copy = g_list_next (copy);
}
+ cached_items[i] = NULL;
g_signal_emit (task->object, signals[READY_SIGNAL], 0,
cached_items);
@@ -269,10 +271,11 @@
i = 0;
while (copy) {
- urlss [i] = g_strdup ((gchar *) copy->data);
+ urlss[i] = g_strdup ((gchar *) copy->data);
i++;
copy = g_list_next (copy);
}
+ urlss[i] = NULL;
g_list_free (urlm);
g_hash_table_iter_remove (&iter);
- Previous message: [maemo-commits] r15985 - in projects/haf/branches/hildon-thumbnail/daemonize: . daemon
- Next message: [maemo-commits] r15987 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
