linux: plug a memory leak

In linux_platform_destroy we close all the handles for the different
libgl* providers, yet we do not free the memory for the base struct
linux_platform, causing a memory leak.

In reality the memory will never be freed ('still reachable' by valgrind)
as we do not have a API to call platform->destroy() and thus cleanup
this and other memory hunks.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 1cec37c7d4677aff855aa01f6f8dfaec1b7b6306)
core: return false on failure in waffle_window_resize

The function return type is bool(ean) not a pointer.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 036a648d40f66818d1d1adcc23a761b8834f5c6e)
wflinfo: silence signed/unsigned comparison warning

The variable i is used as and compared vs unsigned int.
Change its type so silence the compiler warning.

Note: GLint is incorrectly typedeffed as unsigned and we're
using signed int where unsigned is required by the GL API
and vice versa. These will be addressed by followup patches.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 437a07986825ca07ff247d5b69d05c7ca797abc7)