Skip to content

Commit

Permalink
Update PYMain.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Dec 13, 2024
1 parent 021758a commit 17d0943
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/PYMain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,21 @@ sigterm_cb (int sig)
{
LibPinyinBackEnd::finalize ();

#ifdef ENABLE_LIBNOTIFY
notify_uninit();
#endif

::exit (EXIT_FAILURE);
}

static void
atexit_cb (void)
{
LibPinyinBackEnd::finalize ();

#ifdef ENABLE_LIBNOTIFY
notify_uninit();
#endif
}

static void
Expand Down Expand Up @@ -275,9 +283,5 @@ main (gint argc, gchar **argv)

start_component ();

#ifdef ENABLE_LIBNOTIFY
notify_uninit();
#endif

return 0;
}

0 comments on commit 17d0943

Please sign in to comment.