Fix memory leak in Projects addon