Lagrange [work/v1.9]

Widget: Remove timed commands when destroyed

=> b2e19df49b20fe76299b23a0a4535bce3f51aaf8

diff --git a/src/ui/widget.c b/src/ui/widget.c
index 67ce1345..07e8e753 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -23,6 +23,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
 #include "widget.h"
 
 #include "app.h"
+#include "periodic.h"
 #include "touch.h"
 #include "command.h"
 #include "paint.h"
@@ -98,6 +99,7 @@ static void aboutToBeDestroyed_Widget_(iWidget *d) {
     if (flags_Widget(d) & keepOnTop_WidgetFlag) {
         removeOne_PtrArray(onTop_Root(d->root), d);
     }
+    remove_Periodic(periodic_App(), d);
     if (isHover_Widget(d)) {
         get_Window()->hover = NULL;
     }
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.9/cdiff/b2e19df49b20fe76299b23a0a4535bce3f51aaf8
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
28.064779 milliseconds
Gemini-to-HTML Time
0.176848 milliseconds

This content has been proxied by September (ba2dc).