eog r4489 - in trunk: . src
- From: friemann svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4489 - in trunk: . src
- Date: Fri, 21 Mar 2008 11:39:32 +0000 (GMT)
Author: friemann
Date: Fri Mar 21 11:39:32 2008
New Revision: 4489
URL: http://svn.gnome.org/viewvc/eog?rev=4489&view=rev
Log:
2008-03-21 Felix Riemann <friemann svn gnome org>
* src/eog-thumbnail.c: (eog_thumb_data_free), (eog_thumb_data_new):
Use GSlice to alloc/free the internal EogThumbData structure.
Modified:
trunk/ChangeLog
trunk/src/eog-thumbnail.c
Modified: trunk/src/eog-thumbnail.c
==============================================================================
--- trunk/src/eog-thumbnail.c (original)
+++ trunk/src/eog-thumbnail.c Fri Mar 21 11:39:32 2008
@@ -169,7 +169,8 @@
g_free (data->thumb_path);
g_free (data->mime_type);
g_free (data->uri_str);
- g_free (data);
+
+ g_slice_free (EogThumbData, data);
}
static EogThumbData*
@@ -182,7 +183,7 @@
g_return_val_if_fail (file != NULL, NULL);
g_return_val_if_fail (error != NULL && *error == NULL, NULL);
- data = g_new0 (EogThumbData, 1);
+ data = g_slice_new0 (EogThumbData);
data->uri_str = g_file_get_uri (file);
data->thumb_path = gnome_thumbnail_path_for_uri (data->uri_str, GNOME_THUMBNAIL_SIZE_NORMAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]