Quoting Leonhard Gruenschloss :
> attached are two patches against version 2.5 that fix memory leaks in the
> case of errors. It would be great if you could consider them for the next
> release.
Thank you so much. Your changes are already on GIT.
Best Regards
Marti
---
Hi,
That did the trick,Thanks!
Marko
On Thu, Apr 19, 2012 at 4:03 PM, 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);
> retu
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? escribió:
> Hi Guys,
>
> Here it is.
>
> :
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 };
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 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,