buffer: reorder destroy-recreate sequence to avoid cache to be destroyed.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Jan 2009 15:28:43 +0000 (15:28 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Jan 2009 15:28:43 +0000 (15:28 +0000)
commita58905ea942f1d40e031b9688086228c73fb2a71
tree818a8ca46cb5db42437535728c7c65df2f6d6d26
parent87a3c13551046c845f712a5db31b89370b2a1305
buffer: reorder destroy-recreate sequence to avoid cache to be destroyed.

users of buffer engine (ie: e_thumb_main.c) were broken since when
they resize the canvas they would implicitly call engine->setup()
again, which would destroy output and create it again. However the
cache could be destroyed and images using it would be bogus.

This does not happen if the process have other cache users, but
e_thumb is just one canvas live at time.

By reordering, we have the cache reference to go to 2 and then back to
1, not destroying it.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@38739 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/modules/engines/buffer/evas_engine.c