diff options
author | Caleb Michael Moore <cmoore@src.gnome.org> | 2004-10-19 13:39:33 +0000 |
---|---|---|
committer | Caleb Michael Moore <cmoore@src.gnome.org> | 2004-10-19 13:39:33 +0000 |
commit | 99fb49914c247bab3b7d8cac9ca6ce9397993b46 (patch) | |
tree | 39dab0516026d58365e867d15b32cacfb6af21aa /rsvg-defs.c | |
parent | 5cbf8814a5ca9a310e885d4ebb181d34ea970f92 (diff) | |
download | librsvg-99fb49914c247bab3b7d8cac9ca6ce9397993b46.tar.gz |
memleak fix
Diffstat (limited to 'rsvg-defs.c')
-rw-r--r-- | rsvg-defs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rsvg-defs.c b/rsvg-defs.c index 28e3d636..021ea8f6 100644 --- a/rsvg-defs.c +++ b/rsvg-defs.c @@ -57,11 +57,12 @@ void rsvg_defs_set (RsvgDefs *defs, const char *name, RsvgDefVal *val) { if (name == NULL) - g_ptr_array_add(defs->unnamed, val); + ; else if (name[0] == '\0') - g_ptr_array_add(defs->unnamed, val); + ; else g_hash_table_insert (defs->hash, g_strdup (name), val); + g_ptr_array_add(defs->unnamed, val); } void |