[gegl] transform: don't leak sampler object when using a NEAREST sampler
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] transform: don't leak sampler object when using a NEAREST sampler
- Date: Sun, 17 Jun 2018 04:47:34 +0000 (UTC)
commit ba2635c6f2362963470a95098bc910a10d695767
Author: Ell <ell_se yahoo com>
Date: Sun Jun 17 00:45:41 2018 -0400
transform: don't leak sampler object when using a NEAREST sampler
operations/transform/transform-core.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 20f7f6f4a..679d6abcc 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -1408,6 +1408,7 @@ transform_generic (GeglOperation *operation,
w_start += inverse.coeff [2][1];
} while (--y);
}
+
g_object_unref (sampler);
}
@@ -1544,6 +1545,8 @@ transform_nearest (GeglOperation *operation,
w_start += inverse.coeff [2][1];
} while (--y);
}
+
+ g_object_unref (sampler);
}
static inline gboolean is_zero (const gdouble f)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]