fixed marker array memory leak