The Room of Requirement is never set on fire in Harry Potter and the Deathly Hallows (book or film). It is a magical space that appears when needed and adapts to the user's requirements.
You may be recalling a different scene (e.g., the Fiendfyre in the Room of Hidden Things during the Battle of Hogwarts). Clarify the context if so.