GNOME Bugzilla – Bug 722812
osdWindow memory leak, cairo context never freed
Last modified: 2014-01-29 00:48:22 UTC
Cairo contexts need to be manually freed with the $dispose method when used in javascript. osdWindow uses cairo for drawing it's background, but doesn't free the context. It's a fairly slow leak, but spammed the shell with a 100 or so notifications and eventually doubled shell memory usage.
Its a one line fix I think, attached a patch
Created attachment 267016 [details] [review] patch for disposing cairo context
Review of attachment 267016 [details] [review]: No sure if there ever was a fix for this to stop being needed but yeah, right now we are doing it everywhere else. Actually, everywhere else except in _drawArrow() in screenShield.js, care to include that as well in the patch ?
Created attachment 267071 [details] [review] Patch v2
Good catch. Included in the patch
Review of attachment 267071 [details] [review]: LG.
Pushed on Matt's behalf, since he doesn't have a GNOME git account.