Skip to main content

XGameSaveCloseUpdate

Closes an XGameSaveUpdate.

Syntax

Parameters

context   _In_
Type: XGameSaveUpdateHandle
Handle to the XGameSaveUpdate to be closed.

Return value

Type: void Function result.

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
Call this function when you have finished using an XGameSaveUpdateHandle. If you do not close the context handle for a game save update you will cause a memory leak. Every call made to XGameSaveCreateUpdate should have a matching call to XGameSaveCloseUpdate.

Requirements

Header: XGameSave.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

XGameSave
XGameSaveCreateUpdate
Debugging Game Saves
Last modified on August 20, 2026