1
0
mirror of https://github.com/godotengine/godot synced 2024-07-08 18:50:43 +00:00
godot/modules/upnp
Alistair Leslie-Hughes 767bfec8b6 Use local variable to stop memory leak.
I've change the urls variable to be a local, instead of manually allocating it all the time.
This is only used locally and was causing a memory leak because FreeUPNPUrls gave the impression it free it.

1. FreeUPNPUrls doesn't free the pointer passed in, that's up to caller.
2. The second if(!urls) produced dead code as we checked the pointer just after allocation.
2024-04-05 09:13:27 +11:00
..
doc_classes Use local variable to stop memory leak. 2024-04-05 09:13:27 +11:00
config.py
register_types.cpp Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
register_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub
upnp_device.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
upnp_device.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
upnp.cpp Use local variable to stop memory leak. 2024-04-05 09:13:27 +11:00
upnp.h Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00