diff options
-rw-r--r-- | src/api.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -624,11 +624,11 @@ static gpointer bluez_handler_func(gpointer ptr) ERROR("bluetooth_register_agent() failed"); goto err_no_agent; } - } else { - // Let main process know initialization is done - signal_init_done(id, TRUE); } + // Let main process know initialization is done + signal_init_done(id, TRUE); + // Cannot reference id after this point g_atomic_rc_box_release(id); |