Re: [[gnomemm] Gnome::Canvas memory leak]
- From: Murray Cumming <murrayc usa net>
- To: Arthur Peters <amp singingwizard org>, Gnomemm email list <gnomemm-list gnome org>
- Subject: Re: [[gnomemm] Gnome::Canvas memory leak]
- Date: Mon, 15 Sep 2003 08:26:40 +0200
Please add that test case to bugzilla.
Arthur Peters <amp singingwizard org> wrote:
> Hello,
> I am writing a program that uses Gnome::Canvas for it's custom UI
> elements (the timeline, it's a live-proformance MIDI sequencer). I
> noticed that it leaked memory and I tracked at least part of it to the
> following: Gnome::Canvas items don't delete them selves when the
> underlying GTKObject is destroyed. This means that if I create a bunch
> of lines in a group then delete the group the line GTKObjects are
> destroyed, but the C++ line objects are never deleted. This is a large
> problem because my program starts from scratch (by deleting the groups,
> since it doesn't track the line objects individually)
>
> I have attached a program that exibits the problem.
>
> -Arthur
>
> --
> Arthur Peters <amp singingwizard org>
>
> ---------------------------------------------
> Attachment: gnome_canvas_mem_leak.cc
> MIME Type: text/x-c
> ---------------------------------------------
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]