If you want to keep the changes for future use, in the Edit Theme group, click Themes, and then click Save Current Theme.
If you apply a different theme, then the slide master changes are discarded. Tip: Modifications to the slide master and the corresponding slide layouts are temporarily added to the theme that is applied to your presentation.