mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
launch: fix use after free of command options
This commit is contained in:
parent
b528be9426
commit
74f371850d
2 changed files with 18 additions and 14 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <CLI/App.hpp>
|
||||
|
|
@ -26,6 +27,7 @@ private:
|
|||
};
|
||||
|
||||
struct CommandState {
|
||||
std::unique_ptr<CLI::App> app;
|
||||
struct {
|
||||
int argc = 0;
|
||||
char** argv = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue