File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1870,15 +1870,17 @@ RNLERRORTYPE RNLDeinit()
18701870
18711871 for (int threadIdx = 0 ; threadIdx < gThreadCount ; threadIdx++)
18721872 {
1873- if (gIppCtx .specY [threadIdx])
1873+ if (gIppCtx .specY && gIppCtx . specY [threadIdx])
18741874 ippsFree (gIppCtx .specY [threadIdx]);
1875- if (gIppCtx .pbufferY [threadIdx])
1875+ if (gIppCtx .pbufferY && gIppCtx . pbufferY [threadIdx])
18761876 ippsFree (gIppCtx .pbufferY [threadIdx]);
18771877 for (int i = 0 ; i < gPasses ; i++)
18781878 {
1879- SAFE_ARR_DELETE (gIppCtx .segZones [i][threadIdx].inYUpscaled );
1880- SAFE_ARR_DELETE (gIppCtx .segZones [i][threadIdx].inYUpscaled32f );
1881- SAFE_ARR_DELETE (gIppCtx .segZones [i][threadIdx].raisr32f );
1879+ if (gIppCtx .segZones && gIppCtx .segZones [i]) {
1880+ SAFE_ARR_DELETE (gIppCtx .segZones [i][threadIdx].inYUpscaled );
1881+ SAFE_ARR_DELETE (gIppCtx .segZones [i][threadIdx].inYUpscaled32f );
1882+ SAFE_ARR_DELETE (gIppCtx .segZones [i][threadIdx].raisr32f );
1883+ }
18821884 }
18831885 }
18841886 SAFE_DELETE (gPool );
You can’t perform that action at this time.
0 commit comments