[libgxps] Fixed memory leak in GXPSDocument



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]