Fixed memory leak in JSDraw.cpp