Modify ↓
Opened 15 years ago
Closed 15 years ago
#1277 closed Bug (Fixed)
_GDIPlus_ImageGetGraphicsContext needs to be "disposed" in help example
Reported by: | Andrew | Owned by: | Jon |
---|---|---|---|
Milestone: | 3.3.1.6 | Component: | Documentation |
Version: | 3.3.0.0 | Severity: | Blocking |
Keywords: | _GDIPlus_ImageGetGraphicsContext | Cc: |
Description
The help file gives an example of how to use this function.
At the end of the example, the object is NOT DISPOSED. For a novice (like myself) it is not obvious that this object needs to be disposed (otherwise massive memory leak). It seems all the other "create" functions have a matching "dispose" function but not this one.
Through trail-and-error I found the required line was...
_GDIPlus_GraphicsDispose($hGraphics)
Attachments (0)
Change History (2)
comment:1 Changed 15 years ago by Valik
- Severity changed from None to Blocking
comment:2 Changed 15 years ago by Jon
- Milestone set to 3.3.1.6
- Owner set to Jon
- Resolution set to Fixed
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
Fixed by revision [5402] in version: 3.3.1.6