Skip to content

Commit f6224b0

Browse files
committed
Fix potential memory leak
1 parent f83b971 commit f6224b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/truetypefont.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class TTFDataBuffer
1515
static std::shared_ptr<TTFDataBuffer> create(size_t size);
1616
static std::shared_ptr<TTFDataBuffer> create(std::vector<uint8_t> buffer);
1717

18+
virtual ~TTFDataBuffer() = default;
1819
virtual char* data() = 0;
1920
virtual const char* data() const = 0;
2021
virtual size_t size() const = 0;

0 commit comments

Comments
 (0)