picture: fix empty allocation leak