[gimp] app: don't leak the GRand used in GimpOperationPointLayerMode



commit 76638a6c675869b3015092f41efe4680ae3ba18b
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 4 01:31:13 2011 +0100

    app: don't leak the GRand used in GimpOperationPointLayerMode

 app/gegl/gimpoperationpointlayermode.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/gegl/gimpoperationpointlayermode.c b/app/gegl/gimpoperationpointlayermode.c
index 7571b1a..c0977e4 100644
--- a/app/gegl/gimpoperationpointlayermode.c
+++ b/app/gegl/gimpoperationpointlayermode.c
@@ -127,6 +127,8 @@ gimp_operation_point_layer_mode_class_init (GimpOperationPointLayerModeClass *kl
 
   for (i = 0; i < DISSOLVE_REPEAT_WIDTH * DISSOLVE_REPEAT_HEIGHT; i++)
     dissolve_lut[i] = g_rand_int (rand);
+
+  g_rand_free (rand);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]