[DF-1520] fix mem leak in baseAddEntityDialog