Need a MemHandleFree

...
MemPtrUnlock (str);
MemhandleFree(strH);


> Hi 
> Following is my code and it gives me Memory Leak.
> 
> MemHandle  strH;
> Char *   str;
> Int32    num = 89;
> 
> strH = MemHandleNew (sizeof (Int32));
> str = (Char *) MemHandleLock (strH);
> 
> str = StrIToA (str,  num);
> 
> MemPtrUnlock (str);
> 
> above code works but while stopping application
> palm debug gives me an error 
> 
> "Found One Memory Leak for app(1.0)Information
> concerning the leak can be found in the log file
> 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to