178 UiJob *job = data; |
178 UiJob *job = data; |
179 |
179 |
180 UiEvent event; |
180 UiEvent event; |
181 event.obj = job->obj; |
181 event.obj = job->obj; |
182 event.window = job->obj->window; |
182 event.window = job->obj->window; |
183 event.document = job->obj->document; |
183 event.document = job->obj->ctx->document; |
184 event.intval = 0; |
184 event.intval = 0; |
185 event.eventdata = NULL; |
185 event.eventdata = NULL; |
186 |
186 |
187 job->finish_callback(&event, job->finish_data); |
187 job->finish_callback(&event, job->finish_data); |
188 free(job); |
188 free(job); |