[gimp] app: don't leak GimpTemplate's "color_profile" GFile in finalize()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't leak GimpTemplate's "color_profile" GFile in finalize()
- Date: Wed, 12 Oct 2016 19:56:44 +0000 (UTC)
commit 2e1a5bcba9f87f58b2cf2f64843288fd72019ba9
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 12 21:55:28 2016 +0200
app: don't leak GimpTemplate's "color_profile" GFile in finalize()
app/core/gimptemplate.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimptemplate.c b/app/core/gimptemplate.c
index 62c8555..1d09da0 100644
--- a/app/core/gimptemplate.c
+++ b/app/core/gimptemplate.c
@@ -239,6 +239,12 @@ gimp_template_finalize (GObject *object)
{
GimpTemplatePrivate *private = GET_PRIVATE (object);
+ if (private->color_profile)
+ {
+ g_object_unref (private->color_profile);
+ private->color_profile = NULL;
+ }
+
if (private->comment)
{
g_free (private->comment);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]