[libgxps] Fixed memory leak in GXPSFile
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgxps] Fixed memory leak in GXPSFile
- Date: Fri, 29 Jul 2011 08:34:25 +0000 (UTC)
commit 9cee1d2c51b4256b454185aa219eff4f848c9358
Author: Jason Crain <jason aquaticape us>
Date: Fri Jul 29 01:42:20 2011 -0500
Fixed memory leak in GXPSFile
Free init_error when finalized.
libgxps/gxps-file.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgxps/gxps-file.c b/libgxps/gxps-file.c
index 6d93da1..6b7f5f6 100644
--- a/libgxps/gxps-file.c
+++ b/libgxps/gxps-file.c
@@ -244,6 +244,8 @@ gxps_file_finalize (GObject *object)
xps->priv->core_props = NULL;
}
+ g_clear_error (&xps->priv->init_error);
+
G_OBJECT_CLASS (gxps_file_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]