Fix use of deprecated frame allocation API