Fix quadratic polygon test memory leak

Change-Id: I2712cf92ad28d5fd8c1d2baa78b28f434502c08b
Merge topic 'quadratic_polygon_test_fix' into master

bb954ad7 Fix quadratic polygon test memory leak