1
This commit is contained in:
parent
e870538895
commit
4564dca5a6
@ -133,7 +133,7 @@ namespace mt
|
|||||||
|
|
||||||
void MetaMgr::UnInit()
|
void MetaMgr::UnInit()
|
||||||
{
|
{
|
||||||
|
meta_tables.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ namespace mt
|
|||||||
template<class T>
|
template<class T>
|
||||||
void RegMetaTable(const std::string& dir)
|
void RegMetaTable(const std::string& dir)
|
||||||
{
|
{
|
||||||
mt::MetaTable* p = new mt::MetaTable();
|
std::shared_ptr<mt::MetaTable> p = std::make_shared<mt::MetaTable>();
|
||||||
p->static_pre_init_cb =
|
p->static_pre_init_cb =
|
||||||
[] ()
|
[] ()
|
||||||
{
|
{
|
||||||
@ -155,7 +155,7 @@ namespace mt
|
|||||||
|
|
||||||
const std::string GetResDir() { return res_path_; }
|
const std::string GetResDir() { return res_path_; }
|
||||||
private:
|
private:
|
||||||
std::vector<MetaTable*> meta_tables;
|
std::vector<std::shared_ptr<MetaTable>> meta_tables;
|
||||||
std::string res_path_;
|
std::string res_path_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
third_party/a8
vendored
2
third_party/a8
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 73a4706673d6b773ca2e5cf102c45e0f2245aa5b
|
Subproject commit 1e577389c8a2870db9ddbf18577bfca24def049b
|
2
third_party/f8
vendored
2
third_party/f8
vendored
@ -1 +1 @@
|
|||||||
Subproject commit f856de73d2a3087289495690e3ea9bd7b1aa79ef
|
Subproject commit 243bbe515ef4a01089f9a6cf608c93d4097018de
|
Loading…
x
Reference in New Issue
Block a user