---
title: KmlMgMatrixDestroy
description: 销毁矩阵句柄并释放资源。
url: "https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/kunpengaccel_kml_0903.html"
---

# KmlMgMatrixDestroy

销毁矩阵句柄并释放资源。

#### 接口定义

C Interface：

void KmlMgMatrixDestroy(KmlMgMatrixH matrix);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| matrix | KmlMgMatrixH | 由KmlMgMatrixCreate函数创建的矩阵句柄 | 输入/输出 |


#### 依赖

#include "mg.h"

示例代码请参见示例。
