Tom Hacohen <tom.haco...@samsung.com> writes:
> ==24639== 736 (512 direct, 224 indirect) bytes in 2 blocks are
> definitely lost in loss record 152 of 189
[...]
> Evas leaks now...
I get different results here with the attached program. Namely, the
blocks are marked as still reachable instead of definitely lost. This is
more in line with what I said I was expecting: since we don't call
FcFini(), some objects are not deleted before shutdown. In the end,
free()ing some pointers at exit and just exiting shouldn't be much
different in practice.
Of course, making Valgrind happier is a good thing, so I'm open to
alternative ideas on how to fix the original problem :-)
#include <Ecore_Evas.h>
#include <Evas.h>
int main(void)
{
Ecore_Evas *ee = NULL;
Evas_Object *o = NULL;
evas_init();
ecore_evas_init();
ee = ecore_evas_buffer_new(640, 480);
o = evas_object_text_add(ecore_evas_get(ee));
evas_object_color_set(o, 255, 0, 0, 255);
evas_object_resize(o, 640, 480);
evas_object_text_font_set(o, "sans", 14);
evas_object_text_text_set(o, "Hello, world!");
evas_object_show(o);
ecore_evas_show(ee);
ecore_evas_free(ee);
ecore_evas_shutdown();
evas_shutdown();
return 0;
}
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel