[gtk+/gtk-2-24] gtk-demo: plug a memleak in the editable cells demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] gtk-demo: plug a memleak in the editable cells demo
- Date: Sat, 19 Feb 2011 15:14:39 +0000 (UTC)
commit 3998dd9563b2de65735ea7fb44bb835a11817f06
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 17 18:49:01 2011 -0500
gtk-demo: plug a memleak in the editable cells demo
demos/gtk-demo/editable_cells.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/demos/gtk-demo/editable_cells.c b/demos/gtk-demo/editable_cells.c
index 638d13f..f5f1490 100644
--- a/demos/gtk-demo/editable_cells.c
+++ b/demos/gtk-demo/editable_cells.c
@@ -48,27 +48,27 @@ add_items (void)
g_return_if_fail (articles != NULL);
foo.number = 3;
- foo.product = g_strdup ("bottles of coke");
+ foo.product = "bottles of coke";
foo.yummy = 20;
g_array_append_vals (articles, &foo, 1);
foo.number = 5;
- foo.product = g_strdup ("packages of noodles");
+ foo.product = "packages of noodles";
foo.yummy = 50;
g_array_append_vals (articles, &foo, 1);
foo.number = 2;
- foo.product = g_strdup ("packages of chocolate chip cookies");
+ foo.product = "packages of chocolate chip cookies";
foo.yummy = 90;
g_array_append_vals (articles, &foo, 1);
foo.number = 1;
- foo.product = g_strdup ("can vanilla ice cream");
+ foo.product = "can vanilla ice cream";
foo.yummy = 60;
g_array_append_vals (articles, &foo, 1);
foo.number = 6;
- foo.product = g_strdup ("eggs");
+ foo.product = "eggs";
foo.yummy = 10;
g_array_append_vals (articles, &foo, 1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]