memory leak in paintshadow