Skip to content

Commit

Permalink
Whoops, don't leak memory
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMax committed Dec 10, 2023
1 parent e5fac39 commit 06a0303
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/lexio/bufreader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class GenericBufReader
size_t m_size = 0;

public:
GenericBufReader() = delete;
GenericBufReader(T &&wrapped) : m_wrapped(wrapped) {}
~GenericBufReader() { delete[] m_buffer; }

size_t LexRead(uint8_t *outDest, const size_t count)
{
Expand Down

0 comments on commit 06a0303

Please sign in to comment.