History

use WELS_DELETE_OP for deleting

sijchen committed 10 years ago

Commit e07ee9c1 parent 74955c84 files · +17 −35Browse files

Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+1−2
@@ -413,8 +413,7 @@ void ReleaseMtResource (sWelsEncCtx** ppCtx) { · 412 unmodified lines
413413 memset (&pSmt->bThreadBsBufferUsage, 0, MAX_THREADS_NUM * sizeof (bool));
414414
415415 if ((*ppCtx)->pTaskManage != NULL) {
416− delete (*ppCtx)->pTaskManage;
417− (*ppCtx)->pTaskManage = NULL;
416+ WELS_DELETE_OP((*ppCtx)->pTaskManage);
418417 }
419418
420419 #ifdef MT_DEBUG

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t