diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-08-28 23:09:38 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-08-28 23:09:38 +0200 |
commit | e43916d7d1409e4031d56ee1704456bef55eeb1d (patch) | |
tree | 839a5a27874f5cdd77104f4b3bb4da7a84aca788 /src/timers.h | |
parent | bfea10205a9fd4cb02cd6c94d2d94baaefaed278 (diff) |
Fix segfault when closing a window in multi-window reload mode
Issue:
* start feh --multiwindow --reload 5
* close a window with "x"
* wait up to 5 seconds
* segfault
The issue was caused by the closed window's reload timer still being active
even after the winwidget was free'd.
Diffstat (limited to 'src/timers.h')
-rw-r--r-- | src/timers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timers.h b/src/timers.h index a4243ca..e95d9b5 100644 --- a/src/timers.h +++ b/src/timers.h @@ -37,7 +37,7 @@ struct __fehtimer { void feh_handle_timer(void); double feh_get_time(void); -void feh_remove_timer(char *name); +void feh_remove_timer_by_data(void *data); void feh_add_timer(void (*func) (void *data), void *data, double in, char *name); void feh_add_unique_timer(void (*func) (void *data), void *data, double in); |