DNA on its own is very stable but DNase's are the problem especially at room temp (>10 °C). I would add DNase inhibitors ih you have some or add EDTA in DNA samples to remove any Mg2+ and Mn2+ ions that are cofactors for DNase's. Also I would cook the DNA sample at 95°C for 5 min to denature any leftover proteins.