Kouhei Sutou
kous****@users*****
Tue Apr 25 12:47:35 JST 2006
Index: kazehakase/ext/ruby/kz-rb-embed.c diff -u kazehakase/ext/ruby/kz-rb-embed.c:1.10 kazehakase/ext/ruby/kz-rb-embed.c:1.11 --- kazehakase/ext/ruby/kz-rb-embed.c:1.10 Mon Apr 24 00:04:14 2006 +++ kazehakase/ext/ruby/kz-rb-embed.c Tue Apr 25 12:47:35 2006 @@ -211,9 +211,15 @@ GList *list = NULL; if (kz_embed_get_dest_anchors(_SELF(self), &list)) - return GLIST2ARY(list); + { + VALUE result = GLIST2ARY(list); + g_list_free(list); + return result; + } else + { return rb_ary_new(); + } } static VALUE