mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Fix DBus error message if IBus couldn't be initialized.
This commit is contained in:
parent
8011557458
commit
a4458a7002
@ -479,9 +479,11 @@ SDL_IBus_Init(void)
|
|||||||
inotify_wd = inotify_add_watch(inotify_fd, addr_file, IN_CREATE | IN_MODIFY);
|
inotify_wd = inotify_add_watch(inotify_fd, addr_file, IN_CREATE | IN_MODIFY);
|
||||||
SDL_free(addr_file);
|
SDL_free(addr_file);
|
||||||
|
|
||||||
|
if (addr) {
|
||||||
result = IBus_SetupConnection(dbus, addr);
|
result = IBus_SetupConnection(dbus, addr);
|
||||||
SDL_free(addr);
|
SDL_free(addr);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user