Proper way to release a QTMovie
Proper way to release a QTMovie
- Subject: Proper way to release a QTMovie
- From: Ramakrishna Vavilala <email@hidden>
- Date: Tue, 2 Jun 2009 09:38:30 -0400
So I have a QTMovieLayer which plays a QTMovie.
QTMovie* movie = [QTMovie movieWithFileName:fileName];
QTMovieLayer* movieLayer = [[QTMovieLayer layerWithMovie:movie];
[superlayer addSublayers:movieLayer];
The user may or may not view the entire movie. If the user desires to stop
the movie, I do this:
[[movieLayer movie] stop];
[movieLayer removeFromSuperlayer];
[movieLayer release];
This should cause the memory to be free, but it Leaks and Object Allocation
tool shows the memory as leaked. Any idea?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden