DC Entertainment president Diane Nelson is leaving Warner Bros., the company announced on Wednesday. Nelson, who is also the president of Warner Bros. Consumer Products, has been on a leave of absence since the end of March. She was named president of DC Entertainment in 2009, where she oversaw the development of television projects, feature films and video games, though results have been mixed. DC has struggled to keep up with competitor Marvel; although “Wonder Woman” was a critical and commercial hit, critics panned “Suicide Squad” and “Batman v. Superman: Dawn of Justice,” and “Justice League” performed below expectations at the box office. Warner Bros. is owned by Time Warner Inc.. Shares of Time Warner have risen 3.4% in 2018 so far, and the S&P has gained 3.5%.