Skip to content

Commit

Permalink
Fix DBus error message if IBus couldn't be initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
baines committed Mar 20, 2015
1 parent 8011557 commit a4458a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/linux/SDL_ibus.c
Expand Up @@ -479,8 +479,10 @@ SDL_IBus_Init(void)
inotify_wd = inotify_add_watch(inotify_fd, addr_file, IN_CREATE | IN_MODIFY);
SDL_free(addr_file);

result = IBus_SetupConnection(dbus, addr);
SDL_free(addr);
if (addr) {
result = IBus_SetupConnection(dbus, addr);
SDL_free(addr);
}
}

return result;
Expand Down

0 comments on commit a4458a7

Please sign in to comment.