[mutter/gnome-3-28] window: Fix a small memory leak
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-28] window: Fix a small memory leak
- Date: Thu, 29 Mar 2018 05:24:45 +0000 (UTC)
commit 2da2489da54c2eb6580d5a655a6723514ab8bc04
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Mar 21 21:16:23 2018 -0300
window: Fix a small memory leak
(cherry picked from commit 63e2c0329f12401ef3c93201b53c463142e7a9ca)
src/core/window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 565698da9..86f9d69b1 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -5268,7 +5268,7 @@ static cairo_surface_t *
load_default_window_icon (int size)
{
GtkIconTheme *theme = gtk_icon_theme_get_default ();
- GdkPixbuf *pixbuf;
+ g_autoptr (GdkPixbuf) pixbuf = NULL;
const char *icon_name;
if (gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]