Fix: remove the mainloop_trigger that are no longer needed.
Merge pull request #328 from yuusuke/fix_memory_leak

Fix: remove the mainloop_trigger that are no longer needed.