From d548f49f622fe143e4bd37be71c9222ba49b45c9 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Thu, 14 Sep 2023 01:28:23 +0000 Subject: [PATCH] ci: fix up test-docs-examples --- .github/workflows/test-docs-examples.yml | 2 +- docpages/example_code/mp3.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-docs-examples.yml b/.github/workflows/test-docs-examples.yml index 64a3044722..24d709c93a 100644 --- a/.github/workflows/test-docs-examples.yml +++ b/.github/workflows/test-docs-examples.yml @@ -37,7 +37,7 @@ jobs: CXX: g++-12 - name: Build Project - run: cd build && make -j2 && sudo make install + run: cd build && make -j32 && sudo make install - name: Test compile examples run: cd docpages/example_code && mkdir build && cd build && cmake .. && make -j2 diff --git a/docpages/example_code/mp3.cpp b/docpages/example_code/mp3.cpp index a085df531e..db15cb489d 100644 --- a/docpages/example_code/mp3.cpp +++ b/docpages/example_code/mp3.cpp @@ -51,14 +51,14 @@ int main(int argc, char const *argv[]) counter += buffer_size; totalBytes += done; } - delete buffer; + delete[] buffer; mpg123_close(mh); mpg123_delete(mh); /* Setup the bot */ dpp::cluster bot("token"); - bot.on_log(dpp::utility::cout_logger()); + bot.on_log(dpp::utility::cout_logger()); /* The event is fired when someone issues your commands */ bot.on_slashcommand([&bot, &pcmdata](const dpp::slashcommand_t& event) {