[gegl] color-warp: glibify a memory allocation
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] color-warp: glibify a memory allocation
- Date: Sun, 20 Nov 2016 15:59:43 +0000 (UTC)
commit 765cde3647f2efce9c5347bb36e6f39523aa7654
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Nov 20 16:59:27 2016 +0100
color-warp: glibify a memory allocation
operations/common/color-warp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/color-warp.c b/operations/common/color-warp.c
index 0bde017..f519347 100644
--- a/operations/common/color-warp.c
+++ b/operations/common/color-warp.c
@@ -83,7 +83,7 @@ typedef struct CoordWarp {
static CoordWarp *cw_new (void)
{
CoordWarp *cw;
- cw = calloc (sizeof (CoordWarp), 1);
+ cw = g_new0 (sizeof (CoordWarp), 1);
return cw;
}
@@ -94,7 +94,7 @@ static void cw_clear_pairs (CoordWarp *cw)
static void cw_destroy (CoordWarp *cw)
{
- free (cw);
+ g_free (cw);
}
static void cw_add_pair (CoordWarp *cw,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]