diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-07 19:50:39 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-07 19:50:39 +0000 |
commit | e75323a5589a578d87f61c046ec80ed20662ccc2 (patch) | |
tree | 725a61b991ed29d70208d181e8c3b79645877a97 /demos | |
parent | 85fda2788d264b0755da837fa329ebc75269959f (diff) | |
download | gdk-pixbuf-e75323a5589a578d87f61c046ec80ed20662ccc2.tar.gz |
Don't leak text.
2005-12-07 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
leak text.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/iconview_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/gtk-demo/iconview_edit.c b/demos/gtk-demo/iconview_edit.c index 72c079db5..a58f84cdb 100644 --- a/demos/gtk-demo/iconview_edit.c +++ b/demos/gtk-demo/iconview_edit.c @@ -64,6 +64,8 @@ set_cell_color (GtkCellLayout *cell_layout, (color.green >> 8) << 16 | (color.blue >> 8) << 8; + g_free (text); + pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 24, 24); gdk_pixbuf_fill (pixbuf, pixel); |