De-register the filter on the root window when deallocating

This commit is contained in:
Pierre Pronchery 2013-12-19 02:22:47 +01:00
parent 1c23613447
commit 89dce32795

View File

@ -306,6 +306,8 @@ static void _tasks_destroy(Tasks * tasks)
{
size_t i;
if(tasks->root != NULL)
gdk_window_remove_filter(tasks->root, _on_filter, tasks);
for(i = 0; i < tasks->tasks_cnt; i++)
free(tasks->tasks[i]);
free(tasks->tasks);