On Tue, 12 Jul 2011 14:52:29 -0300 Raphael Kubo da Costa <[email protected]>
said:

in what case doesnt it get closed?

_cleanup_tmpf(obj);

is called when u set a new memfile and if u set a real file name+key and on
image obj free. sure. some cases like setting image data, colorspace etc. dont
cleanup. i just added it.

oh.. btw.. u know evas doesnt even free objects until u do a few render cycles?
it keeps them around for prev/next state comparison. if u never evas_render()
then evas will never free any objects until final canvas free. there is an
evas_norender() for this case of using invisible buffer canvases for "footwork"
like loading image data, making thumbnails etc.

> Hey there,
> 
> I'm currently working on some code [1] which reads PNG images from stdin
> and does some processing and comparisons on them.
> 
> In short:
>  - The data is read from stdin and fed to an Evas_Object (created via
>    evas_object_image_filled_add) with evas_object_image_memfile_set;
>  - Some of these images are processed and compared and another
>    Evas_Object holding another image is created via
>    evas_object_image_filled_add.
> 
> However, the file descriptors used by evas_object_image_memfile_set and
> the memory allocated by the calls to evas_object_image_filled_add are
> freed only when evas_object_image_free() is called, and this only seems
> to be happening when we destroy our Ecore_Evas at the end of the
> execution. This means that file descriptor and memory consumption
> increases until the system is exhausted.
> 
> Is this behaviour intentional and should we be doing it all differently?
> 
> [1]
> http://trac.webkit.org/browser/trunk/Tools/DumpRenderTree/efl/ImageDiff.cpp
> 
> -- 
> Raphael Kubo da Costa
> ProFUSION embedded systems
> http://profusion.mobi
> 
> 
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric 
> Ries, the creator of the Lean Startup Methodology on "Lean Startup 
> Secrets Revealed." This video shows you how to validate your ideas, 
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to