Commit Graph
13 Commits
Author SHA1 Message Date
Jon Beniston 852fd6e10c Add connections overlay 2026-09-27 23:09:10 +01:00
Robin Getz c2b30d4fa8 tree wide: Fix message ownership and reporting for unhandled queue messages
MessageQueue::pop() transfers ownership of the popped message to the
caller, but many handleInputMessages() implementations only deleted
the message when handleMessage() returned true. When a message was not
handled, ownership had already been transferred from the queue and the
message was leaked.

This was identified while investigating an ASAN leak in the audio
subsystem.

Update the applicable handleInputMessages() implementations to always
delete messages after handleMessage() returns. Unhandled messages are
also logged with the component and message identifier so unexpected
message routing is visible during debugging.

This change:
- Ensures every message popped from a queue has its ownership resolved.
- Prevents leaks when handleMessage() returns false.
- Makes unhandled messages visible instead of silently discarding them.
- Preserves the existing message handling logic and does not require
  components to handle message types that are legitimately irrelevant
  to them.

The changes are intentionally mechanical and limited to the common
message queue ownership and diagnostic pattern.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-25 23:49:05 -04:00
f4exb 5d0fa7fa67 Removed destroy method leftovers and Sonar lint 2024-08-27 09:54:09 +02:00
Daniele Forsi 4241f01376 Fix typos in cpp files 2024-07-10 23:06:38 +02:00
Daniele Forsi 98abefc68b Fix memleaks
Frees memory allocated
in SkyMapGUI::SkyMapGUI(PluginAPI*, FeatureUISet*, Feature*, QWidget*) sdrangel/plugins/feature/skymap/skymapgui.cpp:215
2024-05-26 22:10:26 +02:00
srcejon a0b21221ae SkyMap: Add Moon map. 2024-04-04 15:20:03 +01:00
srcejon 20455519f0 SkyMap: Handle find requests, even if map not ready. 2024-03-28 15:29:28 +00:00
srcejon e1817958b5 Fix warnings and Sky Map connections. 2024-02-16 18:08:31 +00:00
srcejon 483e338614 Add AvailableChannelOrFeatureHandler for handling lists of channels, features and message pipes to them. 2024-02-16 16:31:12 +00:00
srcejon 607d7db702 Use MainCore code for managing available channel and feature list. 2024-02-14 15:36:22 +00:00
srcejon b046eac470 Update default settings. Tweak UI. 2024-02-14 14:13:04 +00:00
srcejon e6e4d1661e Fix compiler warnings. 2024-02-14 13:58:44 +00:00
srcejon 2708a81623 Add Sky Map feature plugin. 2024-02-14 13:20:33 +00:00