gegl r1929 - in trunk: . gegl/module
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r1929 - in trunk: . gegl/module
- Date: Mon, 28 Jan 2008 16:46:56 +0000 (GMT)
Author: neo
Date: Mon Jan 28 16:46:55 2008
New Revision: 1929
URL: http://svn.gnome.org/viewvc/gegl?rev=1929&view=rev
Log:
2008-01-28 Sven Neumann <sven gimp org>
* gegl/module/geglmodule.c: allocate GeglModuleInfo using GSlice.
Modified:
trunk/ChangeLog
trunk/gegl/module/geglmodule.c
Modified: trunk/gegl/module/geglmodule.c
==============================================================================
--- trunk/gegl/module/geglmodule.c (original)
+++ trunk/gegl/module/geglmodule.c Mon Jan 28 16:46:55 2008
@@ -450,9 +450,7 @@
const gchar *copyright,
const gchar *date)
{
- GeglModuleInfo *info;
-
- info = g_new0 (GeglModuleInfo, 1);
+ GeglModuleInfo *info = g_slice_new0 (GeglModuleInfo);
info->abi_version = abi_version;
info->purpose = g_strdup (purpose);
@@ -502,7 +500,7 @@
g_free (info->copyright);
g_free (info->date);
- g_free (info);
+ g_slice_free (GeglModuleInfo, info);
}
GType
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]