diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-12 09:24:54 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-12 09:24:54 +0300 |
commit | afce1909b4705a6b0d5b63394098f3d8b02cda54 (patch) | |
tree | 9d64cf7b926f67aea357cd80b27f80dfd327dd0f /src/ui | |
parent | 49bdcc535b1f686abcd110bd5daa64e7d6286bbc (diff) |
DocumentWidget: Possible crash when closing a tab
The animation ticker callback was not removed.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 99767584..c9751fe3 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -175,6 +175,7 @@ iDefineTypeConstruction(DrawBufs) | |||
175 | 175 | ||
176 | /*----------------------------------------------------------------------------------------------*/ | 176 | /*----------------------------------------------------------------------------------------------*/ |
177 | 177 | ||
178 | static void animate_DocumentWidget_ (void *ticker); | ||
178 | static void animateMedia_DocumentWidget_ (iDocumentWidget *d); | 179 | static void animateMedia_DocumentWidget_ (iDocumentWidget *d); |
179 | static void updateSideIconBuf_DocumentWidget_ (const iDocumentWidget *d); | 180 | static void updateSideIconBuf_DocumentWidget_ (const iDocumentWidget *d); |
180 | 181 | ||
@@ -347,6 +348,7 @@ void init_DocumentWidget(iDocumentWidget *d) { | |||
347 | } | 348 | } |
348 | 349 | ||
349 | void deinit_DocumentWidget(iDocumentWidget *d) { | 350 | void deinit_DocumentWidget(iDocumentWidget *d) { |
351 | removeTicker_App(animate_DocumentWidget_, d); | ||
350 | delete_Translation(d->translation); | 352 | delete_Translation(d->translation); |
351 | delete_DrawBufs(d->drawBufs); | 353 | delete_DrawBufs(d->drawBufs); |
352 | delete_VisBuf(d->visBuf); | 354 | delete_VisBuf(d->visBuf); |