summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 5d29da5b..46235206 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1,5 +1,6 @@
1#include "app.h" 1#include "app.h"
2#include "embedded.h" 2#include "embedded.h"
3#include "gmcerts.h"
3#include "history.h" 4#include "history.h"
4#include "ui/command.h" 5#include "ui/command.h"
5#include "ui/window.h" 6#include "ui/window.h"
@@ -51,6 +52,7 @@ struct Impl_App {
51 iWindow * window; 52 iWindow * window;
52 iSortedArray tickers; 53 iSortedArray tickers;
53 iBool pendingRefresh; 54 iBool pendingRefresh;
55 iGmCerts * certs;
54 iHistory * history; 56 iHistory * history;
55 /* Preferences: */ 57 /* Preferences: */
56 iBool retainWindowSize; 58 iBool retainWindowSize;
@@ -144,6 +146,7 @@ static void init_App_(iApp *d, int argc, char **argv) {
144 d->window = NULL; 146 d->window = NULL;
145 d->retainWindowSize = iTrue; 147 d->retainWindowSize = iTrue;
146 d->pendingRefresh = iFalse; 148 d->pendingRefresh = iFalse;
149 d->certs = new_GmCerts(dataDir_App_);
147 d->history = new_History(); 150 d->history = new_History();
148 loadPrefs_App_(d); 151 loadPrefs_App_(d);
149 load_History(d->history, dataDir_App_); 152 load_History(d->history, dataDir_App_);
@@ -165,6 +168,7 @@ static void deinit_App(iApp *d) {
165 savePrefs_App_(d); 168 savePrefs_App_(d);
166 save_History(d->history, dataDir_App_); 169 save_History(d->history, dataDir_App_);
167 delete_History(d->history); 170 delete_History(d->history);
171 delete_GmCerts(d->certs);
168 deinit_SortedArray(&d->tickers); 172 deinit_SortedArray(&d->tickers);
169 delete_Window(d->window); 173 delete_Window(d->window);
170 d->window = NULL; 174 d->window = NULL;