[gimp] app: don't leak all results from separate_uline_pattern() in GimpSpinScale
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't leak all results from separate_uline_pattern() in GimpSpinScale
- Date: Mon, 6 Oct 2014 18:36:55 +0000 (UTC)
commit aa6024dc931fbcda26fc864244b6c73b87e2997a
Author: Michael Natterer <mitch gimp org>
Date: Mon Oct 6 20:34:22 2014 +0200
app: don't leak all results from separate_uline_pattern() in GimpSpinScale
app/widgets/gimpspinscale.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index e2b7cf7..fd3c132 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -1018,10 +1018,10 @@ gimp_spin_scale_set_label (GimpSpinScale *scale,
private->label = g_strdup (label);
g_free (private->label_text);
- private->label_text = g_strdup (text);
+ private->label_text = text; /* don't dup */
g_free (private->label_pattern);
- private->label_pattern = g_strdup (pattern);
+ private->label_pattern = pattern; /* don't dup */
if (private->mnemonic_keyval != accel_key)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]