Re: gtk_plot_canvas_child_move_resize() on a line?

Al Hooton <[email protected]> Thu, 02 Dec 2004 15:21:54 -0800
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <[email protected]>
	Adrian,

On Wed, 2004-12-01 at 15:05 -0800, Adrian E. Feiguin wrote:
> Congratulations, you've found a bug! Check out the new code in cvs, and 
> tell me if it works.

	Yes it does, thanks!  But, there's a problem...    8^(=

	Each time I move either my ellipse or my line, I lose around 225KB to a
memory leak somewhere.  Since I'm moving both of them every few seconds,
this obviously causes me problems pretty quickly.  If I leave everything
in my code the same, and just comment out the following two calls, no
memory leak:

--------------------

  /* Move/resize both of them */
  gtk_plot_canvas_child_move(GTK_PLOT_CANVAS(canvas),
			     GTK_PLOT_CANVAS_CHILD(plotBubbleEllipse),
			     bubbleX - BUBBLE_CENTER_OFFSET_X,
			     bubbleY - BUBBLE_CENTER_OFFSET_Y);

  gtk_plot_canvas_child_move_resize(GTK_PLOT_CANVAS(canvas),
				GTK_PLOT_CANVAS_CHILD(plotBubbleLine),
				lineX, lineY,
				pointX, pointY);

--------------------

	I've confirmed that my parameters to these calls make sense, and I've
definitely narrowed it down to these two calls.  If I make them, I get
about 225KB per call of a leak (about 550KB for both together).  If I
don't make them, no leak.

	Ideas?

	Thanks!

-Al





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/