I make use of customized run-time menus (RTM) on some of my contols. In addition, in order to dynamically enable\disable\check\uncheck menu items for different conditions, I use the "Shorcut Menu Activation?" filter event to control the menu choices that the user can make before handling the actual choice in a "Shortcut Menu Selection (User)?" notify event. All of this works as expected.
However, I've noticed that since the RTM referneces are dynamically created in the filter event, each time the event is called a different refnum is created. This is confirmed by a probe on the menu refnum, which shows a different number every time the use right-clicks on the control. My question is if LV automaically closes these references after the filter event is finished, or if I have to close them myself. I've tried using the "Close Reference" primative, but it produces a wire-type conflict with menu refnums.
I'm primarily worried about memory leaks over time. Am I worried for no reason?