Projects
Home     Blog     Install     New Ticket     View Tickets     Browse Source

Ticket #23 (closed defect: fixed)

Opened 10 months ago

Last modified 8 months ago

CircleView.app leaks memory while animating

Reported by: lsansonetti@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.2
Component: MacRuby Keywords:
Cc:

Description

Summary should be self explanatory. Start the sample, click on "Spin" then observe the memory growing in top(1). Memory is never released, even when the animation is stopped.

Change History

Changed 10 months ago by lsansonetti@…

The original Objective-C sample (with GC enabled) doesn't reproduce this problem.

Changed 10 months ago by lsansonetti@…

Same problem occurs with the PathDemo sample.

Changed 8 months ago by lsansonetti@…

  • milestone changed from MacRuby 1.0 to MacRuby 0.2

Changed 8 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

The problem was in the boxed accessors, which are caching their values as ivars. Since boxeds are T_DATA, generic ivars are used, and the receiver was leaked because retained by the global table. The problem is fixed in r216.

Note: See TracTickets for help on using tickets.