From: Masao M. <mu...@hi...> - 2006-06-17 07:02:44
|
むとうです。 この件で、Ruby/GLib2に新たに GLIST2ARYF, GLIST2ARY2F, GSLIST2ARYF, GSLIST2ARY2F (最後にFを付けた) というマクロを追加しました。それぞれ、内部でg_list_free, g_slist_free を呼び出します。 単純にg_list_freeすれば良いモノなどはマクロの置き換えだけで対応可能です。 一部、listの内容を明示的にunrefするようなモノは元のGLIST2ARY等を 使います。 なお、Ruby/GTK2は対応しました。 On Tue, 30 May 2006 01:15:00 +0900 Masao Mutoh <mu...@hi...> wrote: > むとうです。 > > On Mon, 29 May 2006 23:34:59 +0900 (JST) > Masahiro Sakai (酒井政裕) <sa...@to...> wrote: > > > 酒井です。 > > > > GLIST2ARY, GLIST2ARY2, GSLIST2ARY, GSLIST2ARY2 を使っている部分で > > リークしている個所が結構あります。例えば以下のコードは、 > > gtk_window_list_toplevels()が新たに確保したリストを、 > > g_list_freeしていないためにリークしてます。 > > > > static VALUE > > gwin_s_list_toplevels(self) > > VALUE self; > > { > > return GLIST2ARY(gtk_window_list_toplevels()); > > } > > ご指摘ありがとうございます。 > なんで気づかなかったんだろう。見直さないとですねぇ。 > > -- > .:% Masao Mutoh<mu...@hi...> > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > ruby-gnome2-devel-ja mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-ja > -- -- .:% Masao Mutoh<mu...@hi...> |