Compartilhar via


XGameSaveCloseUpdate

Closes an XGameSaveUpdate.

Syntax

void XGameSaveCloseUpdate(  
         XGameSaveUpdateHandle context  
)  

Parameters

context   _In_
Type: XGameSaveUpdateHandle

Handle to the XGameSaveUpdate to be closed.

Return value

Type: void

Function result.

Remarks

Note

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

See also

XGameSave
XGameSaveCreateUpdate
Game save errors