[maemo-commits] [maemo-commits] r17699 - in projects/haf/trunk/hildon-thumbnail: . thumbs

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Mar 16 19:28:42 EET 2009
Author: pvanhoof
Date: 2009-03-16 19:28:36 +0200 (Mon, 16 Mar 2009)
New Revision: 17699

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c
Log:
2009-03-16  Philip Van Hoof  <pvanhoof at codeminded.be>

        * thumbs/hildon-thumbnail-obj.c: Bugfix passing mime-hints



Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-03-16 16:06:51 UTC (rev 17698)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-03-16 17:28:36 UTC (rev 17699)
@@ -1,3 +1,7 @@
+2009-03-16  Philip Van Hoof  <pvanhoof at codeminded.be>
+
+	* thumbs/hildon-thumbnail-obj.c: Bugfix passing mime-hints
+
 2009-03-13  Philip Van Hoof  <pvanhoof at codeminded.be>
 
 	* thumbs/hildon-thumbnail-obj.c

Modified: projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c	2009-03-16 16:06:51 UTC (rev 17698)
+++ projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c	2009-03-16 17:28:36 UTC (rev 17699)
@@ -506,9 +506,12 @@
 	r_priv->destroy = destroy;
 	r_priv->cropped = cropped;
 
+	mime_types = (GStrv) g_malloc0 (sizeof (gchar *) * 2);
+
 	if (mime_type) {
-		mime_types = (GStrv) g_malloc0 (sizeof (gchar *) * 2);
 		mime_types[0] = g_strdup (mime_type);
+	} else {
+		mime_types[0] = NULL;
 	}
 
 	waiting_for_cb = TRUE;


More information about the maemo-commits mailing list