diff --git a/source/Lib/CommonLib/Picture.cpp b/source/Lib/CommonLib/Picture.cpp index 56d4b3c4f6abe156508c4cbf0a163fea1d32512f..86270623be12247451fb4cdc79fe33e4896d5e25 100644 --- a/source/Lib/CommonLib/Picture.cpp +++ b/source/Lib/CommonLib/Picture.cpp @@ -303,10 +303,14 @@ void Picture::destroyTempBuffers() for (uint32_t t = 0; t < NUM_PIC_TYPES; t++) { if (t == PIC_RESIDUAL || t == PIC_PREDICTION) + { M_BUFS(jId, t).destroy(); + } #if ENABLE_SPLIT_PARALLELISM if (t == PIC_RECONSTRUCTION && jId > 0) + { M_BUFS(jId, t).destroy(); + } #endif } }