Make memnew(RefCounted) return Ref, to force callers to take ownership of it through a reference.
This commit is contained in:
@@ -71,7 +71,7 @@ void NetSocketAndroid::multicast_lock_release() {
|
||||
}
|
||||
}
|
||||
|
||||
NetSocket *NetSocketAndroid::_create_func() {
|
||||
Ref<NetSocket> NetSocketAndroid::_create_func() {
|
||||
return memnew(NetSocketAndroid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user