Remove the static variable in flatviews_init

Or we may get an invalid old (and free-ed) uc instance reference
This commit is contained in:
lazymio
2022-01-15 22:11:14 +01:00
parent dfb0446137
commit a5ceca6d51
2 changed files with 7 additions and 7 deletions

View File

@ -368,6 +368,8 @@ struct uc_struct {
int nested_level; // Current nested_level
struct TranslationBlock *last_tb; // The real last tb we executed.
FlatView *empty_view; // Static function variable moved from flatviews_init
};
// Metadata stub for the variable-size cpu context used with uc_context_*()