Commit 3dd76df
committed
test(sprite): destroy the working texture in the new sheet helper
CreateSheetOfSize built a Texture2D and never released it, while both sibling
helpers a few lines up destroy theirs after encoding. A Texture2D created in an
EditMode test is not collected on its own, so the helper leaked one per call
for as long as the run lasted.
The helper now matches the siblings exactly - same format arguments, same
Path.Combine style, same DestroyImmediate placement - which is the point: an
inconsistency between three functions doing the same job is what let this one
be written without the line.1 parent ae9f537 commit 3dd76df
1 file changed
Lines changed: 12 additions & 7 deletions
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
0 commit comments