diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-09 07:04:11 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-09 07:04:11 +0300 |
commit | bb7bc6fac4fec804846d11c7d77e1b553ba2be6a (patch) | |
tree | c170f134b5ac01c29195589cc77ae4598a524eb3 /src/app.h | |
parent | 5b58cc76bd08d0e061c5f14506d97ee8dc3b7174 (diff) |
Fixed memory leak on tab close
The DocumentWidget was not actually deleted when a tab was closed, only hidden.
Diffstat (limited to 'src/app.h')
-rw-r--r-- | src/app.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -73,8 +73,11 @@ iObjectList * listDocuments_App (void); | |||
73 | iDocumentWidget * document_Command (const char *cmd); | 73 | iDocumentWidget * document_Command (const char *cmd); |
74 | iDocumentWidget * newTab_App (const iDocumentWidget *duplicateOf, iBool switchToNew); | 74 | iDocumentWidget * newTab_App (const iDocumentWidget *duplicateOf, iBool switchToNew); |
75 | 75 | ||
76 | typedef void (*iTickerFunc)(iAny *); | ||
77 | |||
76 | iAny * findWidget_App (const char *id); | 78 | iAny * findWidget_App (const char *id); |
77 | void addTicker_App (void (*ticker)(iAny *), iAny *context); | 79 | void addTicker_App (iTickerFunc ticker, iAny *context); |
80 | void removeTicker_App (iTickerFunc ticker, iAny *context); | ||
78 | void postRefresh_App (void); | 81 | void postRefresh_App (void); |
79 | void postCommand_App (const char *command); | 82 | void postCommand_App (const char *command); |
80 | void postCommandf_App (const char *command, ...); | 83 | void postCommandf_App (const char *command, ...); |