set_display_type(): fixed memory leak.