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/encoder_ext.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+2−4
@@ -2285,8 +2285,7 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 2284 unmodified lines
22852285 if ((*ppCtx)->pMemAlign != NULL) {
22862286 WelsLog (& (*ppCtx)->sLogCtx, WELS_LOG_INFO, "FreeMemorySvc(), verify memory usage (%d bytes) after free..",
22872287 (*ppCtx)->pMemAlign->WelsGetMemoryUsage());
2288− delete (*ppCtx)->pMemAlign;
2289− (*ppCtx)->pMemAlign = NULL;
2288+ WELS_DELETE_OP((*ppCtx)->pMemAlign);
22902289 }
22912290
22922291 free (*ppCtx);
@@ -2474,8 +2473,7 @@ void WelsUninitEncoderExt (sWelsEncCtx** ppCtx) { · 181 unmodified lines
24742473
24752474 if ((*ppCtx)->pVpp) {
24762475 (*ppCtx)->pVpp->FreeSpatialPictures (*ppCtx);
2477− delete (*ppCtx)->pVpp;
2478− (*ppCtx)->pVpp = NULL;
2476+ WELS_DELETE_OP((*ppCtx)->pVpp);
24792477 }
24802478 FreeMemorySvc (ppCtx);
24812479 *ppCtx = NULL;

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