To save any modifications you have made, select File/Save from the menu. Alternatively you call press the save icon on the toolbar.
If you have made any modifications, the program will prompt you to save before exiting.
Note: No changes are actually made until you explicitly save from the menu or toolbar, or when exiting.