mesa/st/tests: Fix zero-byte allocation leaks
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 14 Sep 2017 10:49:07 +0000 (12:49 +0200)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Jan 2018 17:23:00 +0000 (10:23 -0700)
commitad1990629e4d855101977f39319db47f51daf536
tree6ba52a9a58b2aa6fccbe513be8189e6c001a95e3
parentee48e3acb87e2752b511a4915391c325f9b2c75d
mesa/st/tests: Fix zero-byte allocation leaks

Don't allocate a zero-sized array, when no texture offsets are given.

v5: correct spaces and empty lines

Reviewed-by: Brian Paul <brianp@vmware.com>(v4)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
src/mesa/state_tracker/tests/test_glsl_to_tgsi_lifetime.cpp