summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-12 09:24:54 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-12 09:24:54 +0300
commitafce1909b4705a6b0d5b63394098f3d8b02cda54 (patch)
tree9d64cf7b926f67aea357cd80b27f80dfd327dd0f /src/ui
parent49bdcc535b1f686abcd110bd5daa64e7d6286bbc (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.c2
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
178static void animate_DocumentWidget_ (void *ticker);
178static void animateMedia_DocumentWidget_ (iDocumentWidget *d); 179static void animateMedia_DocumentWidget_ (iDocumentWidget *d);
179static void updateSideIconBuf_DocumentWidget_ (const iDocumentWidget *d); 180static void updateSideIconBuf_DocumentWidget_ (const iDocumentWidget *d);
180 181
@@ -347,6 +348,7 @@ void init_DocumentWidget(iDocumentWidget *d) {
347} 348}
348 349
349void deinit_DocumentWidget(iDocumentWidget *d) { 350void 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);