Hi,
That did the trick,Thanks!
Marko
On Thu, Apr 19, 2012 at 4:03 PM, <marti.ma...@littlecms.com> wrote:
>
> Hi Marko,
>
> Ok, the leak is in the tone curve you allocate and never free
>
> Try this:
>
>
> cmsHPROFILE h = ::cmsCreateRGBProfile( &d65, &primaries, transferFunction
> );
>
> cmsFreeToneCurve(gamma);
> return h;
>
>
> It should work.
> Regards
> Marti
>
>
>
>
> Marko Vrani? <mvranic1...@gmail.com> escribió:
>
> Hi Guys,
>>
>> Here it is.
>>
>> ::cmsHPROFILE CreateProfile_AdobeRGB()
>> {
>> ::cmsCIExyY d65; // D65 white point
>> ::cmsWhitePointFromTemp( &d65, 6504 );
>>
>> ::cmsCIExyY redxyY = { 0.6400, 0.3300, 0.297361 };
>> ::cmsCIExyY greenxyY = { 0.2100, 0.7100, 0.627355 };
>> ::cmsCIExyY bluexyY = { 0.1500, 0.0600, 0.075285 };
>>
>> ::cmsCIExyYTRIPLE primaries = { redxyY, greenxyY, bluexyY }; // Red,
>> Green,
>> Blue
>>
>> ::cmsToneCurve* gamma = ::cmsBuildGamma( 0, 2.19921875 ); // Build gamma(
>> 2.2 )
>> ::cmsToneCurve* transferFunction[ 3 ] = { gamma , gamma , gamma };
>>
>> return ::cmsCreateRGBProfile( &d65, &primaries, transferFunction );
>> }
>>
>> I've only closed ::cmsHPROFILE that method returns.What more is to be
>> closed and how?
>>
>> thanks,
>>
>> Marko
>>
>>
>> On Thu, Apr 19, 2012 at 3:05 PM, <marti.ma...@littlecms.com> wrote:
>>
>>
>>> Hi Marko,
>>>
>>> Kai-Uwe is rigth... without the code we cannot spot where the leak is.
>>>
>>> In particular, I'm suspicious about the function
>>> CreateProfile_AppleRGB(),
>>> which is in your side. Do you free the tone curves after using them to
>>> create the profile?
>>>
>>> Regards
>>> Marti.
>>>
>>>
>>>
>>>
>>> Kai-Uwe Behrmann <k...@gmx.de> escribió:
>>>
>>>
>>> Marko,
>>>
>>>>
>>>> where is your test code? Showing us that, so the behaviour can easily be
>>>> reproduced will help considerably.
>>>>
>>>> kind regards
>>>> Kai-Uwe Behrmann
>>>> --
>>>> www.oyranos.org
>>>>
>>>> Am 19.04.12, 14:43 +0200 schrieb Marko Vrani?:
>>>>
>>>>
>>>> I have problem in my application which uses lcms engine with memory
>>>>> leak.
>>>>>
>>>>>
>>>> So, the memory leak of 8192 bytes is at the same block which lcms uses.
>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user