> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameSaveCloseUpdate

> XGameSaveCloseUpdate

# XGameSaveCloseUpdate

关闭 XGameSaveUpdate。

## Syntax

```cpp theme={null}
void XGameSaveCloseUpdate(  
         XGameSaveUpdateHandle context  
)  
```

### Parameters

*context*   \_In\_\
类型：XGameSaveUpdateHandle

要关闭的 XGameSaveUpdate 的句柄。

### Return value

类型：void

函数结果。

## Remarks

> [!NOTE]
>
> 此函数在时间敏感型线程上调用是不安全的。有关详细信息，请参阅[时间敏感型线程](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)。

使用完 XGameSaveUpdateHandle 后请调用此函数。如果不关闭游戏存档更新的上下文句柄，将导致内存泄漏。每次对 [XGameSaveCreateUpdate](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavecreateupdate.md) 的调用都应有一次对 **XGameSaveCloseUpdate** 的匹配调用。

## Requirements

**头文件：** XGameSave.h

**库：** xgameruntime.lib

**受支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## Conceptual documentation

* [时间敏感型线程](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XGameSave](https://docs.xbox.com/zh-CN/reference/system/xgamesave/xgamesave_members.md)\
[XGameSaveCreateUpdate](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavecreateupdate.md)\
[调试游戏保存](https://docs.xbox.com/zh-CN/build/core-features/common/game-save/game-saves-debugging.md)


## Related topics

- [XGameSaveSubmitUpdate](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavesubmitupdate.md)
- [XGameSaveCreateUpdate](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavecreateupdate.md)
- [XGameSaveSubmitUpdateAsync](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavesubmitupdateasync.md)
- [XGameSave API 概述](https://docs.xbox.com/zh-CN/build/core-features/common/game-save/xgamesave.md)
- [XGameSave（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xgamesave/xgamesave_members.md)
