Fixed memory leak when removing constraint objects