Skip to content

Commit

Permalink
Fix placement of null assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Madeleine Goebel authored and bdw committed May 24, 2019
1 parent 6bc095d commit 2ccc20f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/io/eventloop.c
Expand Up @@ -292,11 +292,13 @@ void MVM_io_eventloop_destroy(MVMThreadContext *tc) {

if (instance->event_loop) {
uv_close((uv_handle_t*)instance->event_loop_wakeup, NULL);
instance->event_loop_wakeup = NULL;

/* Not sure we can always do this */
uv_loop_close(instance->event_loop);

MVM_free(instance->event_loop_wakeup);
instance->event_loop_wakeup = NULL;

MVM_free(instance->event_loop);
instance->event_loop = NULL;
}
Expand Down

0 comments on commit 2ccc20f

Please sign in to comment.