[maemo-commits] [maemo-commits] r18688 - in projects/haf/trunk/hildon-thumbnail: . daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Jun 10 13:33:10 EEST 2009
Author: pvanhoof
Date: 2009-06-10 13:33:01 +0300 (Wed, 10 Jun 2009)
New Revision: 18688

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-plugin.c
Log:
2009-06-10  Philip Van Hoof  <philip at codeminded.be>

        * daemon/hildon-thumbnail-plugin.c: No need to copy the list here



Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-06-10 06:55:21 UTC (rev 18687)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-06-10 10:33:01 UTC (rev 18688)
@@ -1,3 +1,7 @@
+2009-06-10  Philip Van Hoof  <philip at codeminded.be>
+
+	* daemon/hildon-thumbnail-plugin.c: No need to copy the list here
+
 2009-06-09  Philip Van Hoof  <philip at codeminded.be>
 
 	* daemon/plugins/epeg-plugin.c:

Modified: projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-plugin.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-plugin.c	2009-06-10 06:55:21 UTC (rev 18687)
+++ projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-plugin.c	2009-06-10 10:33:01 UTC (rev 18688)
@@ -41,7 +41,7 @@
 	GList *copy;
 
 	g_static_rec_mutex_lock (&mutex);
-	copy = g_list_copy (outplugs);
+	copy = outplugs;
 
 	while (copy) {
 		GModule *module = copy->data;
@@ -61,7 +61,6 @@
 
 	g_static_rec_mutex_unlock (&mutex);
 
-	g_list_free (copy);
 }
 
 void
@@ -71,7 +70,7 @@
 	GList *copy;
 
 	g_static_rec_mutex_lock (&mutex);
-	copy = g_list_copy (outplugs);
+	copy = outplugs;
 
 	while (copy) {
 		GModule *module = copy->data;
@@ -91,7 +90,6 @@
 
 	g_static_rec_mutex_unlock (&mutex);
 
-	g_list_free (copy);
 }
 
 gchar * 
@@ -101,7 +99,7 @@
 	gchar *retval = NULL;
 
 	g_static_rec_mutex_lock (&mutex);
-	copy = g_list_copy (outplugs);
+	copy = outplugs;
 
 	while (copy && !retval) {
 		GModule *module = copy->data;
@@ -121,8 +119,6 @@
 
 	g_static_rec_mutex_unlock (&mutex);
 
-	g_list_free (copy);
-
 	return retval;
 }
 
@@ -185,7 +181,7 @@
 	gboolean retval = FALSE;
 
 	g_static_rec_mutex_lock (&mutex);
-	copy = g_list_copy (outplugs);
+	copy = outplugs;
 
 	while (copy && !retval) {
 		GModule *module = copy->data;
@@ -205,7 +201,6 @@
 
 	g_static_rec_mutex_unlock (&mutex);
 
-	g_list_free (copy);
 
 	return retval;
 }
@@ -228,7 +223,7 @@
 	GQuark domain;
 
 	g_static_rec_mutex_lock (&mutex);
-	copy = g_list_copy (outplugs);
+	copy = outplugs;
 
 	while (copy) {
 		GModule *module = copy->data;
@@ -266,7 +261,6 @@
 
 	g_static_rec_mutex_unlock (&mutex);
 
-	g_list_free (copy);
 }
 
 

More information about the maemo-commits mailing list