1
0
Fork 0
flightgear/src
Lars Toenning 8a8973fe15 AIManager: Explicitly take SGSharedPtr
Otherwise a SGSharedPtr is implicitly created on ai_list.push_back(model). It's not clear to the caller that FGAIManager takes care of the passed raw pointer.

Also fixes a bug for swift using the passed dangling pointer after the created SGSharedPtr of FGAIManager got out of scope and deleted the resource.

As this commit mainly addresses the swift crash (also for backport to LTS) it doesn't fix other calls to ::attach(..) which might also use the raw pointer afterwards.
2021-06-07 12:43:50 +01:00
..
Add-ons Suppress warning: potential uninitialized variable 2021-02-21 00:40:42 -06:00
AIModel AIManager: Explicitly take SGSharedPtr 2021-06-07 12:43:50 +01:00
Aircraft Controls: ensure engine index is valid 2021-05-24 15:54:17 +01:00
Airports GroundNet: try to reduce crashes with bad routes 2021-06-04 16:59:12 +01:00
ATC Clear ATC on the user aircraft as well 2021-04-26 11:14:06 +01:00
Autopilot Add error reporting to common failure points. 2021-02-20 20:06:27 +00:00
Canvas Canvas placement on dynamic models 2021-03-18 08:39:56 +00:00
Cockpit Panel/cockpit loading: report errors 2021-04-25 19:18:56 +01:00
EmbeddedResources CMake: make another object dependency explicit 2021-03-10 10:17:15 +00:00
Environment Precomputed random numbers API 2021-05-25 12:57:07 +01:00
FDM Avoid propeller spinning in the wind (issue #2581) 2021-05-29 15:59:56 +02:00
GUI NavData poly-lines: split out from main Octree 2021-06-04 16:59:12 +01:00
Include * Support CycloneDDS as a SGIOChannel 2021-03-05 16:10:04 +01:00
Input Move some ALERTS to MANDATORY_INFO 2021-05-28 11:59:10 +01:00
Instrumentation Precomputed random numbers API 2021-05-25 12:57:07 +01:00
Main src/Main/main.cxx: updated call to SGPropertyLockControl(). 2021-06-02 19:06:58 +01:00
Model Fix dumb inverted logic commit 2021-04-25 19:18:56 +01:00
MultiPlayer Precomputed random numbers API 2021-05-25 12:57:07 +01:00
Navaids NavData poly-lines: split out from main Octree 2021-06-04 16:59:12 +01:00
Network AIManager: Explicitly take SGSharedPtr 2021-06-07 12:43:50 +01:00
Radio Fix shadowing of static variable in ITM adiff() function 2019-08-07 16:02:45 +02:00
Scenery Finish 2021-carriers-and-ai-part-1-towers 2021-04-16 22:02:11 +02:00
Scripting src/Scripting/nasal-props.cxx:f_getAttribute(): added VALUE_CHANGED_UP and VALUE_CHANGED_DOWN. 2021-06-02 19:06:58 +01:00
Sound Add error reporting to common failure points. 2021-02-20 20:06:27 +00:00
Systems Missed check for a readProperties file check 2020-11-12 09:35:19 +00:00
Time src/Time/TimeManager.cxx: include <algorithm> for std::max. 2021-04-15 22:24:15 +01:00
Traffic Error reporting: report Traffic errors 2021-03-14 14:47:17 +00:00
Viewer Precomputed random numbers API 2021-05-25 12:57:07 +01:00
CMakeLists.txt Switch to using OBJECT library for main build 2021-03-08 16:59:14 +00:00