Hi all,
What's the reason behind not calling dfb_surface_destroy_buffers()
within IDirectFBSurface_Destruct( IDirectFBSurface *thiz )?
At the epilogue of that function there is:
if (data->surface) {
if (data->locked)
dfb_surface_unlock_buffer( data->surface, &data->lock );
dfb_surface_unref( data->surface );
}
Is there any problem turning that into a:
if (data->surface) {
if (data->locked)
dfb_surface_unlock_buffer( data->surface, &data->lock );
dfb_surface_unref( data->surface );
dfb_surface_destroy_buffers( data->surface );
}
Is it about lazy allocation/deallocation? Who is ultimately going to
collect all the freed chunks from the surface pool?
Regards,
Ilyes Gouta.
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev