[libgxps] Fixed memory leak in GXPSDocument
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgxps] Fixed memory leak in GXPSDocument
- Date: Fri, 29 Jul 2011 09:12:58 +0000 (UTC)
commit 2efbedc7cfd9087da77a7d77fe58823448108bfb
Author: Jason Crain <jason aquaticape us>
Date: Fri Jul 29 01:42:19 2011 -0500
Fixed memory leak in GXPSDocument
Free init_error when finalized.
libgxps/gxps-document.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgxps/gxps-document.c b/libgxps/gxps-document.c
index a05c72e..65250f3 100644
--- a/libgxps/gxps-document.c
+++ b/libgxps/gxps-document.c
@@ -335,6 +335,8 @@ gxps_document_finalize (GObject *object)
doc->priv->pages = NULL;
}
+ g_clear_error (&doc->priv->init_error);
+
G_OBJECT_CLASS (gxps_document_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]