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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Oct 8 17:37:32 EEST 2008
Author: pvanhoof
Date: 2008-10-08 17:37:31 +0300 (Wed, 08 Oct 2008)
New Revision: 16377

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c
Log:
2008-10-08  Philip Van Hoof  <philip at codeminded.be>

        * thumbs/hildon-thumbnail-obj.c: Memory leak oeps, fix



Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2008-10-08 14:34:53 UTC (rev 16376)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2008-10-08 14:37:31 UTC (rev 16377)
@@ -1,5 +1,9 @@
 2008-10-08  Philip Van Hoof  <philip at codeminded.be>
 
+	* thumbs/hildon-thumbnail-obj.c: Memory leak oeps, fix
+
+2008-10-08  Philip Van Hoof  <philip at codeminded.be>
+
 	* thumbs/hildon-thumbnail-obj.c
 	* thumbs/hildon-thumbnail-factory.h: Added support for cropped thumbs
 	to the new API

Modified: projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c	2008-10-08 14:34:53 UTC (rev 16376)
+++ projects/haf/trunk/hildon-thumbnail/thumbs/hildon-thumbnail-obj.c	2008-10-08 14:37:31 UTC (rev 16377)
@@ -220,6 +220,10 @@
 hildon_thumbnail_request_finalize (GObject *object)
 {
 	HildonThumbnailRequestPrivate *r_priv = REQUEST_GET_PRIVATE (object);
+	guint i;
+
+	for (i = 0; i < 3; i++)
+		g_free (r_priv->paths[i]);
 	if (r_priv->uris)
 		g_strfreev (r_priv->uris);
 	g_free (r_priv->key);


More information about the maemo-commits mailing list