GNOME Bugzilla – Bug 772377
thumb_app_set_error_handles and refcounting
Last modified: 2016-10-03 21:49:36 UTC
gst_element_get_bus is [transfer-full] so that a simple g_object_unref(bus) in line 239 of totem-video-thumbnailer.c will really cleanup all gstreamer objects. I found this out by reusing (privately) the code for thumbnail generation inside a single process for multiple files. After a certain number of video files, no further instances of the GStreamer object can be created as the old ones are kept in memory. Adding aforementioned patch clears this issue.
Fixed in gnome-3-20 and master, thanks! commit 66d30104807056d0ac1f1173ecd5e365159d2fee Author: Bastien Nocera <hadess@hadess.net> Date: Mon Oct 3 23:46:55 2016 +0200 thumbnailer: Fix memory leak Spotted by denniswbb@web.de https://bugzilla.gnome.org/show_bug.cgi?id=772377