Firefighters have been working to contain fires on the NSW Mid North Coast, and central and southern parts of Queensland.