(c)where the mentally ill person dies during his mental illness without leaving any person legally entitled to succeed to his estate, the whole of the surplus amount shall, with the prior permission of the District Court, be utilised for such charitable purpose as may be approved by the District Court.