[maemo-commits] [maemo-commits] r11082 - projects/haf/trunk/hildon-fm/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Apr 16 16:37:43 EEST 2007
- Previous message: [maemo-commits] r11081 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r11083 - projects/haf/trunk/hildon-fm/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll
Date: 2007-04-16 16:37:41 +0300 (Mon, 16 Apr 2007)
New Revision: 11082
Modified:
projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-info.c
Log:
* hildon-fm/hildon-file-system-info.c
(hildon_file_system_info_async_new): Use g_slice_new0 and
g_slice_free after all. The slice allocator is the recommended
general purpose allocator now. Thanks to Martyn again for
explaining this!
Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-info.c
===================================================================
--- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-info.c 2007-04-16 12:42:26 UTC (rev 11081)
+++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-info.c 2007-04-16 13:37:41 UTC (rev 11082)
@@ -70,7 +70,7 @@
g_free(info->name_cache);
g_object_unref(info->fs);
- g_free (info);
+ g_slice_free (HildonFileSystemInfo, info);
}
@@ -203,7 +203,7 @@
return NULL;
}
- result = g_new0(HildonFileSystemInfo, 1);
+ result = g_slice_new0 (HildonFileSystemInfo);
result->free_after_callback = TRUE;
result->fs = fs;
result->path = path;
- Previous message: [maemo-commits] r11081 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r11083 - projects/haf/trunk/hildon-fm/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
