summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/up-history.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/up-history.c b/src/up-history.c
index 795b093..4ed55fc 100644
--- a/src/up-history.c
+++ b/src/up-history.c
@@ -532,6 +532,8 @@ up_history_array_from_file (GPtrArray *list, const gchar *filename)
ret = up_history_item_set_from_string (item, parts[i]);
if (ret)
g_ptr_array_add (list, item);
+ else
+ g_object_unref (item);
}
out: