#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 https://developer.gnome.org/glib/2.28/glib-IO-Channels.html, 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 22 months ago.
demo.cpp download (1.0 KB) - added by jbbbms 22 months ago.

Download all attachments as: .zip

Change History (3)

Changed 22 months ago by jbbbms

Changed 22 months ago by jbbbms

comment:1 Changed 22 months 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.