We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa79670 commit 5325a2bCopy full SHA for 5325a2b
src/video_display/vulkan/vulkan_sdl2.cpp
@@ -189,7 +189,7 @@ struct state_vulkan_sdl2 {
189
// Use raw pointers because std::unique_ptr might not have standard layout
190
vkd::VulkanDisplay* vulkan = nullptr;
191
WindowCallback* window_callback = nullptr;
192
- FrameMappings* frame_mappings = new FrameMappings();
+ std::unique_ptr<FrameMappings> frame_mappings = std::make_unique<FrameMappings>();
193
194
std::atomic<bool> should_exit = false;
195
video_desc current_desc{};
@@ -211,7 +211,6 @@ struct state_vulkan_sdl2 {
211
state_vulkan_sdl2& operator=(state_vulkan_sdl2&& other) = delete;
212
213
~state_vulkan_sdl2() {
214
- delete frame_mappings;
215
module_done(&mod);
216
}
217
};
0 commit comments