[frogr] Don't free memory on idle when deserializing
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Don't free memory on idle when deserializing
- Date: Sun, 11 Nov 2012 00:10:29 +0000 (UTC)
commit 7302bb1385dcca6398cb146ebdecee39fe4be0f2
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sat Nov 10 03:13:58 2012 +0100
Don't free memory on idle when deserializing
src/frogr-picture.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/frogr-picture.c b/src/frogr-picture.c
index ce64699..fb3c0c4 100644
--- a/src/frogr-picture.c
+++ b/src/frogr-picture.c
@@ -104,7 +104,6 @@ static gint _compare_groups (FrogrGroup *group1, FrogrGroup *group2);
static JsonNode *_serialize_list (GSList *objects_list);
static gboolean _deserialize_list (GType g_type, JsonNode *node, GValue *value);
-static gboolean _free_deserialized_object_list_on_idle (GSList *list);
static JsonNode *_serialize_property (JsonSerializable *serializable,
const gchar *name,
@@ -311,23 +310,11 @@ _deserialize_list (GType g_type, JsonNode *node, GValue *value)
}
g_value_set_pointer (value, objects);
- g_idle_add ((GSourceFunc)_free_deserialized_object_list_on_idle, objects);
}
return TRUE;
}
-static gboolean
-_free_deserialized_object_list_on_idle (GSList *list)
-{
- if (list)
- {
- g_slist_foreach (list, (GFunc) g_object_unref, NULL);
- g_slist_free (list);
- }
- return FALSE;
-}
-
static JsonNode *
_serialize_property (JsonSerializable *serializable,
const gchar *name,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]