Fixed bug in the triangle draw() and memory leak