Hello,
I need some help in freeing memory used by images loaded into
ClutterTextures.
Valgrind shows that the memory is freed when the application terminates
(at least
the memory of the big images).
My application is a simple version of an image-slideshow. When the next
image is shown I call clutter_actor_destroy(previousActor) on the old
actor.
Is that enough to free the memory used by the texture? The used memory
increases
(a lot) with each image and nothing is freed.
ClutterActor *actor1 = clutter_texture_new();
clutter_texture_set_from_file( CLUTTER_TEXTURE(actor1), filename, NULL );
clutter_group_add( CLUTTER_GROUP(stage), actor1 );
// set pos, set size, ...
// ...
clutter_actor_destroy( prevActor );
Because it will get a long-term running app it's not enough if the memory
is freed when the process terminates.
I'm using clutter-0.9.0 on Ubuntu (2.6.27) with an nvidia card and the
nvidia driver (177.82).
valgrind output:
==8572== LEAK SUMMARY:
==8572== definitely lost: 0 bytes in 0 blocks.
==8572== possibly lost: 284,308 bytes in 44 blocks.
==8572== still reachable: 176,859 bytes in 2,518 blocks.
==8572== suppressed: 0 bytes in 0 blocks.
thanks,
Lukas
--
To unsubscribe send a mail to [email protected]