[gegl] operations: fix buffer leaks in noise-pick and noise-slur
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: fix buffer leaks in noise-pick and noise-slur
- Date: Sat, 20 Apr 2013 20:28:57 +0000 (UTC)
commit d5a87f81fcbbc36f80a21a1a11e0798b2708ac7d
Author: Michael Henning <drawoc darkrefraction com>
Date: Sat Apr 20 16:27:19 2013 -0400
operations: fix buffer leaks in noise-pick and noise-slur
operations/common/noise-pick.c | 2 ++
operations/common/noise-slur.c | 2 ++
2 files changed, 4 insertions(+)
---
diff --git a/operations/common/noise-pick.c b/operations/common/noise-pick.c
index bf56eed..1f01e8f 100644
--- a/operations/common/noise-pick.c
+++ b/operations/common/noise-pick.c
@@ -185,6 +185,8 @@ process (GeglOperation *operation,
g_slice_free1 (4 * total_pixels * sizeof (gfloat), src_buf);
g_slice_free1 (4 * n_pixels * sizeof (gfloat), dst_buf);
+ g_object_unref (tmp);
+
return TRUE;
}
diff --git a/operations/common/noise-slur.c b/operations/common/noise-slur.c
index f9a94b1..d19ca71 100644
--- a/operations/common/noise-slur.c
+++ b/operations/common/noise-slur.c
@@ -170,6 +170,8 @@ process (GeglOperation *operation,
g_slice_free1 (4 * total_pixels * sizeof (gfloat), src_buf);
g_slice_free1 (4 * n_pixels * sizeof (gfloat), dst_buf);
+ g_object_unref (tmp);
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]