38 |
#include "preferences.h" |
#include "preferences.h" |
39 |
#include "support.h" |
#include "support.h" |
40 |
#include "history.h" |
#include "history.h" |
41 |
|
#include "dxcc.h" |
42 |
|
|
43 |
#if WANT_HAMLIB |
#if WANT_HAMLIB |
44 |
# include <hamlib/rig.h> |
# include <hamlib/rig.h> |
54 |
extern gchar **bandsplit; |
extern gchar **bandsplit; |
55 |
extern gchar **modesplit; |
extern gchar **modesplit; |
56 |
extern gchar **qso; |
extern gchar **qso; |
|
extern dxcc_data *dxcc; |
|
57 |
extern gchar *xlogdir; |
extern gchar *xlogdir; |
58 |
extern gint remotetimer; |
extern gint remotetimer; |
59 |
extern gint clocktimer, savetimer; |
extern gint clocktimer, savetimer; |
60 |
extern glong msgid; |
extern glong msgid; |
|
extern GHashTable *prefixes; |
|
61 |
extern void *shareCall; |
extern void *shareCall; |
62 |
extern GList *logwindowlist; |
extern GList *logwindowlist; |
63 |
extern gchar *searchpx; |
extern gchar *searchpx; |
181 |
GtkWidget *bandoptionmenu, *modeoptionmenu, *handlebox; |
GtkWidget *bandoptionmenu, *modeoptionmenu, *handlebox; |
182 |
|
|
183 |
/* free the dxcc array */ |
/* free the dxcc array */ |
184 |
for (i = 0; i < state.countries; i++) |
cleanup_dxcc (); |
|
{ |
|
|
g_free (dxcc[i].countryname); |
|
|
g_free (dxcc[i].continent); |
|
|
g_free (dxcc[i].px); |
|
|
g_free (dxcc[i].exceptions); |
|
|
} |
|
|
g_free (dxcc); |
|
185 |
|
|
186 |
/* free the qso array */ |
/* free the qso array */ |
187 |
for (i = 0; i < QSO_FIELDS; i++) |
for (i = 0; i < QSO_FIELDS; i++) |
232 |
g_list_free (riglist); |
g_list_free (riglist); |
233 |
#endif |
#endif |
234 |
|
|
|
if (prefixes) g_hash_table_destroy (prefixes); |
|
235 |
g_strfreev (bandsplit); |
g_strfreev (bandsplit); |
236 |
g_strfreev (modesplit); |
g_strfreev (modesplit); |
237 |
g_free (xlogdir); |
g_free (xlogdir); |