diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 21:51:06 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 21:51:06 +0100 |
commit | 80ed1262bd654fe2de30389f97a985b5f2c1d783 (patch) | |
tree | 020b1b63d637e07882c9a10d81fe2ac04ce82bcc /backend/util.hpp | |
parent | c45a436fc594101f676cfabe90225d825d935fec (diff) |
add more containers and fix use after free
Diffstat (limited to 'backend/util.hpp')
-rw-r--r-- | backend/util.hpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/backend/util.hpp b/backend/util.hpp deleted file mode 100644 index 2d9e76a..0000000 --- a/backend/util.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#include "util.h" - -template <typename T> -void safe_free(List<T *> & ptr_list) { - for (T * obj : ptr_list) - delete obj; - ptr_list.clear(); -} - |