Revision | 21eec81d5504125a9cf565f19c5548ec211d57e0 (tree) |
---|---|
Time | 2018-10-29 07:43:58 |
Author | Starg <starg@user...> |
Commiter | Starg |
[sfz] Fix potential pointer invalidation on #include
@@ -28,6 +28,7 @@ Instrument *extract_sample_file(char *sample_file); | ||
28 | 28 | #include <cstring> |
29 | 29 | |
30 | 30 | #include <algorithm> |
31 | +#include <deque> | |
31 | 32 | #include <exception> |
32 | 33 | #include <iterator> |
33 | 34 | #include <memory> |
@@ -795,7 +796,7 @@ private: | ||
795 | 796 | }; |
796 | 797 | |
797 | 798 | std::vector<std::string> m_FileNames; |
798 | - std::vector<TextBuffer> m_InBuffers; | |
799 | + std::deque<TextBuffer> m_InBuffers; | |
799 | 800 | std::stack<InputStackItem, std::vector<InputStackItem>> m_InputStack; |
800 | 801 | TextBuffer m_OutBuffer; |
801 | 802 | std::unordered_map<std::string, TextBuffer::View> m_DefinedMacros; |