Make memnew(RefCounted) return Ref, to force callers to take ownership of it through a reference.

This commit is contained in:
Lukas Tenbrink committed 2026-03-18 20:34:08 +01:00
1 parent 456bdea954
commit 05c33acbb1
58 files changed
+174 -196

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ void NetSocketAndroid::multicast_lock_release() {
}
}
NetSocket *NetSocketAndroid::_create_func() {
Ref<NetSocket> NetSocketAndroid::_create_func() {
return memnew(NetSocketAndroid);
}