[glide] Fix leak of JsonGenerator when saving
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Fix leak of JsonGenerator when saving
- Date: Fri, 30 Apr 2010 19:38:31 +0000 (UTC)
commit a61ff0cc0263d7eb7cba8bc06c3db09639bb14aa
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu Apr 29 07:56:36 2010 -0400
Fix leak of JsonGenerator when saving
src/glide-document.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/glide-document.c b/src/glide-document.c
index 93c82b9..181127a 100644
--- a/src/glide-document.c
+++ b/src/glide-document.c
@@ -478,6 +478,7 @@ glide_document_write_json (GlideDocument *d)
// TODO: Error
json_generator_to_file (gen, json_path, NULL);
+ g_object_unref (G_OBJECT (gen));
g_free (json_path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]