GLibSharp / GtkSharp

.Net bindings for gtk+3 and above
Other
27 stars 21 forks source link

Memory Leak caused by not removing Glib TimeoutHandlers from dictionary #42

Closed midmohan closed 4 years ago

midmohan commented 4 years ago

The FinalizerInfo class generated by OpaqueGen.cs doesnt remove the TimeoutHandler Ids added to the static dictionary private static IDictionary<uint, SourceProxy> source_handlers in Source.cs . This would lead to the memory growing continuously with each source_handler added. Could see it filling up GBs in matter of few hours when used with Gstreamer pipelines and objects created with Gstreamer-Sharp bindings for C#

Raising a PR also. Can somebody point out if there is any workaround for this.

midmohan commented 4 years ago

Gsttimeout

sdroege commented 4 years ago

This is fixed now in https://github.com/GLibSharp/GtkSharp/pull/45