Skip to main content

XGameSaveCloseContainer

Closes the XGameSaveContainer.

Syntax

Parameters

context   _In_
Type: XGameSaveContainerHandle
Handle to the XGameSaveContainer 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 the container. If you do not close the context handle for a container you will cause a memory leak. Every call made to XGameSaveCreateContainer should have a matching call to XGameSaveCloseContainer.

Requirements

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

Conceptual documentation

See also

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