Fix DBus error message if IBus couldn't be initialized.

This commit is contained in:
Alex Baines 2015-03-20 19:47:03 +00:00
parent 8011557458
commit a4458a7002

View File

@ -479,8 +479,10 @@ 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);
result = IBus_SetupConnection(dbus, addr); if (addr) {
SDL_free(addr); result = IBus_SetupConnection(dbus, addr);
SDL_free(addr);
}
} }
return result; return result;