desktop-shell: check memory allocation in switcher_binding
after calling malloc() , be sure to determine whether the allocating for memory space is successful
after calling malloc() , be sure to determine whether the allocating for memory space is successful