[gegl] maze: glibify an allocation
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] maze: glibify an allocation
- Date: Sun, 20 Nov 2016 16:00:32 +0000 (UTC)
commit af07f11f585c44aba94a3c077dd0beef6bd6d2d3
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Nov 20 17:00:18 2016 +0100
maze: glibify an allocation
operations/common/maze.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/maze.c b/operations/common/maze.c
index 50e88e6..bbc13e6 100644
--- a/operations/common/maze.c
+++ b/operations/common/maze.c
@@ -614,7 +614,7 @@ process (GeglOperation *operation,
{
/* allocate memory for maze and set to zero */
- maz = (guchar *) calloc (sizeof(guchar), mw * mh);
+ maz = (guchar *) g_new0 (sizeof(guchar), mw * mh);
gr = g_rand_new ();
@@ -710,7 +710,7 @@ process (GeglOperation *operation,
g_rand_free (gr);
- free (maz);
+ g_free (maz);
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]