Procedure TParagraph.OptimizeObjectRefsUnit: WPRTEDefsClass: WPRTEDefs.TParagraphDescription Checks which objects are still used and frees the other objects.