fixed memory leak in getRoomWithProperties