| 12-05-2008, 11:10 AM | #1 | |
I think strings might leak, but I can only find very few threads covering that. Please tell me anything about it if you know. BTW, Quote:
Edit: Scripts/Blizzard.j:function OrderId2StringBJ takes integer orderId returns string local string orderString // Check to see if it's a generic order. set orderString = OrderId2String(orderId) if (orderString != null) then return orderString endif // Check to see if it's a (train) unit order. set orderString = UnitId2String(orderId) if (orderString != null) then return orderString endif // Unrecognized - return an empty string. return "" endfunction |
| 12-05-2008, 12:08 PM | #2 |
String 'leaks' are not leaks. They are cached. In 99.9% of cases, don't worry. Only if you're creating thousands of them should you even consider it (primarily in save codes). |
