Skip to content

Commit

Permalink
Merge pull request luvit#410 from cehoffman/fs_watcher_fix
Browse files Browse the repository at this point in the history
Fix missing handle increment on watcher creation
  • Loading branch information
rphillips committed Sep 9, 2013
2 parents e300546 + c94c60a commit 4850fc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/luv_fs_watcher.c
Expand Up @@ -53,6 +53,7 @@ int luv_new_fs_watcher (lua_State* L) {
const char* filename = luaL_checkstring(L, 1);
uv_fs_event_t* handle = luv_create_fs_watcher(L);
uv_fs_event_init(luv_get_loop(L), handle, filename, luv_on_fs_event, 0);
luv_handle_ref(L, handle->data, -1);
return 1;
}

Expand Down

0 comments on commit 4850fc6

Please sign in to comment.