diff -uNrp a/files/usr/share/cinnamon/applets/calendar@cinnamon.org/applet.js b/files/usr/share/cinnamon/applets/calendar@cinnamon.org/applet.js
--- a/files/usr/share/cinnamon/applets/calendar@cinnamon.org/applet.js 2015-07-09 13:17:00.000000000 +0100
+++ b/files/usr/share/cinnamon/applets/calendar@cinnamon.org/applet.js 2015-07-12 16:50:28.817551729 +0100
@@ -30,6 +30,8 @@ function _onVertSepRepaint (area)
cr.setDash([1, 3], 1); // Hard-code for now
cr.setLineWidth(stippleWidth);
cr.stroke();
+
+ cr.$dispose();
};
function MyApplet(orientation, panel_height, instance_id) {
diff -uNrp a/js/ui/appSwitcher/classicSwitcher.js b/js/ui/appSwitcher/classicSwitcher.js
--- a/js/ui/appSwitcher/classicSwitcher.js 2015-07-09 13:17:00.000000000 +0100
+++ b/js/ui/appSwitcher/classicSwitcher.js 2015-07-12 16:50:28.818551694 +0100
@@ -1039,4 +1039,6 @@ function _drawArrow(area, side) {
Clutter.cairo_set_source_color(cr, bodyColor);
cr.fill();
+
+ cr.$dispose();
}
diff -uNrp a/js/ui/boxpointer.js b/js/ui/boxpointer.js
--- a/js/ui/boxpointer.js 2015-07-09 13:17:00.000000000 +0100
+++ b/js/ui/boxpointer.js 2015-07-12 16:50:28.819551660 +0100
@@ -321,6 +321,8 @@ BoxPointer.prototype = {
Clutter.cairo_set_source_color(cr, borderColor);
cr.setLineWidth(borderWidth);
cr.stroke();
+
+ cr.$dispose();
},
setPosition: function(sourceActor, alignment) {
diff -uNrp a/js/ui/panel.js b/js/ui/panel.js
--- a/js/ui/panel.js" 2015-07-09 13:17:00.000000000 +0100
+++ b/js/ui/panel.js 2015-07-12 16:50:28.820551625 +0100
@@ -939,6 +939,8 @@ PanelCorner.prototype = {
cr.appendPath(savedPath);
cr.fill();
cr.restore();
+
+ cr.$dispose();
},
_styleChanged: function() {
diff -uNrp a/js/ui/popupMenu.js b/js/ui/popupMenu.js
--- a/js/ui/popupMenu.js 2015-07-09 13:17:00.000000000 +0100
+++ b/js/ui/popupMenu.js 2015-07-12 16:50:28.821551590 +0100
@@ -205,6 +205,8 @@ PopupBaseMenuItem.prototype = {
color.alpha / 255);
cr.arc(width / 2, height / 2, width / 3, 0, 2 * Math.PI);
cr.fill();
+
+ cr.$dispose();
},
// This returns column widths in logical order (i.e. from the dot
@@ -454,6 +456,8 @@ PopupSeparatorMenuItem.prototype = {
cr.setSource(pattern);
cr.rectangle(margin, gradientOffset, gradientWidth, gradientHeight);
cr.fill();
+
+ cr.$dispose();
}
};
diff -uNrp a/src/cinnamon-app.c b/src/cinnamon-app.c
--- a/src/cinnamon-app.c 2015-07-09 13:17:00.000000000 +0100
+++ b/src/cinnamon-app.c 2015-07-12 16:50:10.851176734 +0100
@@ -254,7 +254,7 @@ cinnamon_app_create_faded_icon_cpu (StTe
return COGL_INVALID_HANDLE;
pixbuf = gtk_icon_info_load_icon (info, NULL);
- gtk_icon_info_free (info);
+ g_object_unref (info);
if (pixbuf == NULL)
return COGL_INVALID_HANDLE;
diff -uNrp a/src/cinnamon-global.c b/src/cinnamon-global.c
--- a/src/cinnamon-global.c 2015-07-09 13:17:00.000000000 +0100
+++ b/src/cinnamon-global.c 2015-07-12 16:50:20.946825537 +0100
@@ -36,8 +36,6 @@
static CinnamonGlobal *the_object = NULL;
static void grab_notify (GtkWidget *widget, gboolean is_grab, gpointer user_data);
-static void cinnamon_global_on_gc (GjsContext *context,
- CinnamonGlobal *global);
struct _CinnamonGlobal {
GObject parent;
@@ -269,7 +267,6 @@ cinnamon_global_init (CinnamonGlobal *gl
global->js_context = g_object_new (GJS_TYPE_CONTEXT,
"search-path", search_path,
NULL);
- // g_signal_connect (global->js_context, "gc", G_CALLBACK (cinnamon_global_on_gc), global);
g_strfreev (search_path);
}
@@ -1339,13 +1336,6 @@ cinnamon_global_shutdown (void)
cinnamon_global_get_current_time (the_object));
}
-static void
-cinnamon_global_on_gc (GjsContext *context,
- CinnamonGlobal *global)
-{
- global->last_gc_end_time = g_get_monotonic_time ();
-}
-
/**
* cinnamon_global_notify_error:
* @global: a #CinnamonGlobal
diff -uNrp a/src/st/st-texture-cache.c /home/leigh/Downloads/Cinnamon-2.6.13/src/st/st-texture-cache.c
--- a/src/st/st-texture-cache.c 2015-07-09 13:17:00.000000000 +0100
+++ b/src/st/st-texture-cache.c 2015-07-12 16:50:10.852176700 +0100
@@ -1410,7 +1410,7 @@ create_faded_icon_cpu (StTextureCache *c
return NULL;
pixbuf = gtk_icon_info_load_icon (info, NULL);
- gtk_icon_info_free (info);
+ g_object_unref (info);
if (pixbuf == NULL)