My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: Memory leak in DoEncodingToSig
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by du...@wandless.net, Aug 11, 2011
IntPtr instance = DirectCalls.Callpp(klass, signatureWithObjCTypes, Marshal.StringToHGlobalAnsi(encoding), ref exception);

This should be:

IntPtr encodingPtr = Marshal.StringToHGlobalAnsi(encoding);
IntPtr instance = DirectCalls.Callpp(klass, signatureWithObjCTypes, encodingPtr, ref exception);

....

   klass.release();
   Marshal.FreeHGlobal(encodingPtr);
}

Powered by Google Project Hosting