shell: do not double-init a region
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 10 Oct 2012 09:49:26 +0000 (12:49 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Oct 2012 01:38:35 +0000 (21:38 -0400)
commit71f6f3b04c51cdb45c70ddcea8b3e621a39847df
treef4f858fe1636f3c9b24abe18d3b5214db806cfae
parent8e159180cc2cb149399b20300cbed106e298241f
shell: do not double-init a region

weston_surface_create() already inits the opaque region, so the second
init in create_black_surface() is logically wrong. Whether this was a
memory leak or not, depends on Pixman internals.

Fini before initing again.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/shell.c