eog r4824 - in trunk: . src
- From: friemann svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4824 - in trunk: . src
- Date: Tue, 14 Oct 2008 13:25:20 +0000 (UTC)
Author: friemann
Date: Tue Oct 14 13:25:20 2008
New Revision: 4824
URL: http://svn.gnome.org/viewvc/eog?rev=4824&view=rev
Log:
2008-10-14 Felix Riemann <friemann svn gnome org>
* src/eog-uri-converter.c: (free_token), (create_token_string),
(create_token_counter), (create_token_other):
Use GSlice to allocate the token structures.
Modified:
trunk/ChangeLog
trunk/src/eog-uri-converter.c
Modified: trunk/src/eog-uri-converter.c
==============================================================================
--- trunk/src/eog-uri-converter.c (original)
+++ trunk/src/eog-uri-converter.c Tue Oct 14 13:25:20 2008
@@ -66,7 +66,7 @@
g_free (token->data.string);
}
- g_free (token);
+ g_slice_free (EogUCToken, token);
}
static void
@@ -311,7 +311,7 @@
/* FIXME: is this right? */
n_bytes = end_byte - start_byte;
- token = g_new0 (EogUCToken, 1);
+ token = g_slice_new0 (EogUCToken);
token->type = EOG_UC_STRING;
token->data.string = g_new0 (char, n_bytes);
token->data.string = g_utf8_strncpy (token->data.string, start_byte, substr_len);
@@ -324,7 +324,7 @@
{
EogUCToken *token;
- token = g_new0 (EogUCToken, 1);
+ token = g_slice_new0 (EogUCToken);
token->type = EOG_UC_COUNTER;
token->data.counter = 0;
@@ -336,7 +336,7 @@
{
EogUCToken *token;
- token = g_new0 (EogUCToken, 1);
+ token = g_slice_new0 (EogUCToken);
token->type = type;
return token;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]