Opened 4 years ago

Closed 4 years ago

#15785 closed defect (fixed)

Reduce memory leaks when using wxInternetFSHandler in wxGTK

Reported by: jbbbms Owned by:
Priority: normal Milestone:
Component: wxGTK Version: 3.0.0
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


Valgrind would report lots of memory leaks, if use wxInternetFSHandler to read something from network. The patch is the result of browsing, and honestly I don't have an idea about the detail. However, the patch did remove most of resource leaks, except one. Hope some hand-on experts can finish/correct the patch.

Sorry! me English is not good. It's difficult for me to express myself in English, especially when the weather is cold and I feel my brain like frozen. So, please see the demo code and the patch. If more information is needed, please ask and I'll try my best to communicate. Thanks.

Attachments (2)

patch.diff download (830 bytes) - added by jbbbms 4 years ago.
demo.cpp download (1.0 KB) - added by jbbbms 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by jbbbms

Changed 4 years ago by jbbbms

comment:1 Changed 4 years ago by PC

  • Resolution set to fixed
  • Status changed from new to closed

(In [75490]) fix memory leak, closes #15785

Note: See TracTickets for help on using tickets.