GNOME Bugzilla – Bug 792808
Use g_auto to reduce memory leaks
Last modified: 2018-01-23 03:00:45 UTC
Use the g_auto macros to reduce memory leaks. Fixed some GError leaks with this.
Created attachment 367274 [details] [review] mouse: Use g_auto for variables
Review of attachment 367274 [details] [review]: This does fix a couple of potential memleaks! One comment, but I'll fix it myself before pushing. About the gnome-mouse-* files, they could be turned into final classes too... would be a good 2-hours project (hint hint =) ) ::: panels/mouse/cc-mouse-caps-helper.c @@ +31,3 @@ { Display *display; + g_autoptr(GList) devicelist = NULL Missing ';'
Thanks! Attachment 367274 [details] pushed as d9f0b73 - mouse: Use g_auto for variables