-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Jan 03, 2007 at 01:02:39PM -0200, Leandro A. F. Pereira wrote: > Greetings!
[idle_free] Cute. But as Iago points out, you'll have to make sure that your app doesn't go into idle until the object is used. Tough call. I'd think it's more dangerous than it is worth. Try alloca() if you are into that sort of thing. It's frowned upon, because it is a BSD extension (the GNU CC supports it). With that you allocate the space in the stack and it gets freed on exit from the function. Much safer. Just don't return a pointer to this mem ;-) Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFnQhuBcgs9XrR2kYRAgVGAJ9O6Ep3jqdxMQ4zR3ZxMBw3xZYzxQCfavzv rsRLztPEyh6t+HkC6mT41Lo= =9mEF -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list