You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Change RID_Owner::get_owned_list.
This commit is contained in:
@@ -2670,16 +2670,15 @@ bool RendererCanvasCull::free(RID p_rid) {
|
||||
|
||||
template <typename T>
|
||||
void RendererCanvasCull::_free_rids(T &p_owner, const char *p_type) {
|
||||
List<RID> owned;
|
||||
p_owner.get_owned_list(&owned);
|
||||
LocalVector<RID> owned = p_owner.get_owned_list();
|
||||
if (owned.size()) {
|
||||
if (owned.size() == 1) {
|
||||
WARN_PRINT(vformat("1 RID of type \"%s\" was leaked.", p_type));
|
||||
} else {
|
||||
WARN_PRINT(vformat("%d RIDs of type \"%s\" were leaked.", owned.size(), p_type));
|
||||
}
|
||||
for (const RID &E : owned) {
|
||||
free(E);
|
||||
for (const RID &rid : owned) {
|
||||
free(rid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user