diff options
| author | Ray Strode <rstrode@redhat.com> | 2008-05-19 17:45:06 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2008-05-19 17:45:06 -0400 |
| commit | 851019362927d113111484ab210f7caab005728d (patch) | |
| tree | 96724d25be0cf98374852d3f713dc618ba0a7dcf /src | |
| parent | 95e37c737e4139a5e9fa60eb1913c8d57a49c052 (diff) | |
| download | plymouth-851019362927d113111484ab210f7caab005728d.tar.gz plymouth-851019362927d113111484ab210f7caab005728d.tar.xz plymouth-851019362927d113111484ab210f7caab005728d.zip | |
cancel event loop exit watch on window when window gets freed
Diffstat (limited to 'src')
| -rw-r--r-- | src/ply-window.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ply-window.c b/src/ply-window.c index 9830ed4..69fa94f 100644 --- a/src/ply-window.c +++ b/src/ply-window.c @@ -206,6 +206,12 @@ ply_window_free (ply_window_t *window) if (window == NULL) return; + if (window->loop != NULL) + ply_event_loop_stop_watching_for_exit (window->loop, + (ply_event_loop_exit_handler_t) + ply_window_detach_from_event_loop, + window); + ply_window_set_mode (window, PLY_WINDOW_MODE_TEXT); ply_window_close (window); |
