Author: abrander
Date: 2009-12-21 00:42:26 +0100 (Mon, 21 Dec 2009)
New Revision: 2825
Modified:
trunk/librawstudio/rs-utils.c
trunk/librawstudio/rs-utils.h
Log:
Reverted change in revision 2824 and added documentation on freeing result.
Modified: trunk/librawstudio/rs-utils.c
===================================================================
--- trunk/librawstudio/rs-utils.c 2009-12-20 23:32:31 UTC (rev 2824)
+++ trunk/librawstudio/rs-utils.c 2009-12-20 23:42:26 UTC (rev 2825)
@@ -596,6 +596,7 @@
* Split a char * with a given delimiter
* @param str The gchar * to be splitted
* @param delimiter The gchar * to be used as delimiter
+ * @return A GList consisting of the different parts of the input string, must
be freed using g_free() and g_list_free().
*/
GList *
rs_split_string(const gchar *str, const gchar *delimiter) {
@@ -608,7 +609,7 @@
glist = g_list_append(glist, (gchar *) temp[i]);
i++;
}
- g_strfreev(temp);
+ g_free(temp);
return glist;
}
Modified: trunk/librawstudio/rs-utils.h
===================================================================
--- trunk/librawstudio/rs-utils.h 2009-12-20 23:32:31 UTC (rev 2824)
+++ trunk/librawstudio/rs-utils.h 2009-12-20 23:42:26 UTC (rev 2825)
@@ -155,6 +155,7 @@
* Split a char * with a given delimiter
* @param str The gchar * to be splitted
* @param delimiter The gchar * to be used as delimiter
+ * @return A GList consisting of the different parts of the input string, must
be freed using g_free() and g_list_free().
*/
GList *
rs_split_string(const gchar *str, const gchar *delimiter);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit