File tree 1 file changed +4
-0
lines changed
media_softlet/agnostic/common/os
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,17 @@ void MosOcaRTLogMgr::UnregisterRes(OsContextNext *osDriverContext)
124
124
if (!resInterface.osInterface || !resInterface.osInterface ->pfnFreeResource )
125
125
{
126
126
MOS_SafeFreeMemory (resInterface.ocaRTLogResource );
127
+ resInterface.ocaRTLogResource = nullptr ;
127
128
MOS_SafeFreeMemory (resInterface.osInterface );
129
+ resInterface.osInterface = nullptr ;
128
130
return ;
129
131
}
130
132
resInterface.osInterface ->pfnFreeResource (resInterface.osInterface , resInterface.ocaRTLogResource );
131
133
MOS_SafeFreeMemory (resInterface.ocaRTLogResource );
134
+ resInterface.ocaRTLogResource = nullptr ;
132
135
Mos_DestroyInterface (resInterface.osInterface );
133
136
MOS_SafeFreeMemory (resInterface.osInterface );
137
+ resInterface.osInterface = nullptr ;
134
138
}
135
139
136
140
MosOcaRTLogMgr::MosOcaRTLogMgr ()
You can’t perform that action at this time.
0 commit comments