From 811c207a198c6af3210d8c1ac367b5e9fbc1f62a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 21 May 2013 21:31:11 +0000 Subject: [PATCH] Minor cleanup of HRD-related code. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3290 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 2 +- rigclass.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 93eff7948..2f4df1f88 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//--------------------------------------------------------------- MainWindow +//-------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" diff --git a/rigclass.cpp b/rigclass.cpp index fb47030e6..7316fbcce 100644 --- a/rigclass.cpp +++ b/rigclass.cpp @@ -85,6 +85,7 @@ int Rig::open(int n) { if(bConnect) { const wchar_t* context=HRDInterfaceSendMessage(L"Get Context"); m_context="[" + QString::fromWCharArray (context,-1) + "] "; + HRDInterfaceFreeString(context); return 0; } else { m_hrd=false; @@ -117,6 +118,7 @@ int Rig::setFreq(freq_t freq, vfo_t vfo) { const wchar_t* cmnd = (const wchar_t*) t.utf16(); const wchar_t* result=HRDInterfaceSendMessage(cmnd); QString t2=QString::fromWCharArray (result,-1); + HRDInterfaceFreeString(result); if(t2=="OK") { return 0; } else {