]> git.alsa-project.org Git - alsa-gobject.git/commit
seq: skip check of return value from g_malloc()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 02:54:07 +0000 (11:54 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 13:34:07 +0000 (22:34 +0900)
commita7275ac5771c0ac4b026d350d43efb76fda754ae
treea1b2eadf3a556ad057bad39241f87017a5bba780
parent790e5cd8e7d79e65ffaf22cdd60e82e3860f6e8c
seq: skip check of return value from g_malloc()

In GLib implementation, the call of g_malloc() can bring program abort
due to memory starvation. This is necessarily preferable because applications
cannot handle the case and GLib has alternative APIs named 'try' to
allow applications to handle the case.

On the other hand, the memory starvation is system wide issue and it's
hard for applications to solve the issue. It's reasonable for the
implementation to have program abort somehow.

Furthermore, the call of g_object_new() can bring program abort due
to memory starvation. It's impossible for applications to handle the
case.

This commit skips check of return value from g_malloc().

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/seq/client-info.c
src/seq/event-cntr.c
src/seq/query.c
src/seq/user-client.c