diff --git a/ptap/ptap.cpp b/ptap/ptap.cpp index dcb7458..43255a7 100644 --- a/ptap/ptap.cpp +++ b/ptap/ptap.cpp @@ -58,7 +58,7 @@ static LV2_Handle ptap_instantiate( if (ptap->buffers[i] == NULL) { for (int j = 0; j < i; j++) { - delete ptap->buffers[i]; + delete[] ptap->buffers[i]; } delete ptap; @@ -174,7 +174,7 @@ static void ptap_cleanup(LV2_Handle lv2instance) PTap *ptap = (PTap *)lv2instance; for (int i = 0; i < NUM_TAPS; i++) { - delete ptap->buffers[i]; + delete[] ptap->buffers[i]; } delete ptap; diff --git a/pui/textures.cpp b/pui/textures.cpp index e12ca64..47ff513 100644 --- a/pui/textures.cpp +++ b/pui/textures.cpp @@ -93,7 +93,7 @@ void PTextures::InitTextures() } BindTexture(TEX_BACKGLOW, size, size, buffer, GL_LUMINANCE); - delete buffer; + delete[] buffer; BindTexture(TEX_SLIDERS, sliders.width,