Pushing M-class into cleanupstack
| Wed, 2007-06-27 19:10 | |
|
Hi, I noticed that when I push an M-Class object into a clean up stack, it will call a TAny* version of CleanupStack::PushL() and CleanupStack::PopL(), which just frees memory using User::Free(). Is there any way to insert M class objects into cleanup stack without creating my own TCleanupItem? Maybe some generic TCleanupItem designed for M classes? Thanks, -Ji |
|






Forum posts: 683
1. Make the destructor of the M class virtual
2. Use CleanupDeletePushL
Forum posts: 2
That was exactly what I needed. Thanks