Re: [gtk-list] Re: gtk-- : What's wrong with this code...?
- From: Guillaume Laurent <glaurent worldnet fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: gtk-- : What's wrong with this code...?
- Date: 03 May 1998 22:46:35 +0200
Jonathan Belson <jon@dookie.demon.co.uk> writes:
> AIUI a struct is a type of class in C++,
It is, with all members being public.
> but since there is no constructor I'd agree that calling 'new' is
> kind of pointless 8^)
Especially since in this case you only need the pointer, with no new
object pointed to. In your original code, you had :
GSList *gsl = new GSList
[...]
gsl = render_type1->group();
So not only don't you need to call new, but calling it causes a
leak.:-)
> Maybe there's something wrong with my installation? I'm using gtkmm 0.9.1
> and gtk 1.0.0.
Same gtk here, but my gtk-- comes from the CVS server so it's likely a
bit in advance on yours. Still, the best thing you can do is to email
me your code (or preferably the smallest possible subset which
reproduces the bug :-) so I can test it on my setup.
Check that you're replying to me and not the mailing-list :-)
--
Guillaume.
http://www.worldnet.fr/~glaurent
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]