mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-24 12:36:10 -04:00
c88cc7236a
SWGFreqScannerSettings is newly created without a frequency list, so there is no need to check for or copy into an existing list. Transfer the newly created frequency list directly to the settings object. The previous copy path left the newly allocated QList unowned when an existing frequency list was present. This leaked the list because the assignment copied its contents rather than transferring ownership. This also resolves that resource leak identified by Coverity. Signed-off-by: Robin Getz <rgetz503@gmail.com>