Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:Update
mutter.10324
mutter-bsc1093541-fix-window-icon-leak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mutter-bsc1093541-fix-window-icon-leak.patch of Package mutter.10324
diff --git a/src/core/window.c b/src/core/window.c index 4dff32b..a9e21c5 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -4898,6 +4898,7 @@ load_default_window_icon (int size) { GtkIconTheme *theme = gtk_icon_theme_get_default (); GdkPixbuf *pixbuf; + cairo_surface_t *surface; const char *icon_name; if (gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME)) @@ -4906,7 +4907,10 @@ load_default_window_icon (int size) icon_name = "image-missing"; pixbuf = gtk_icon_theme_load_icon (theme, icon_name, size, 0, NULL); - return gdk_cairo_surface_create_from_pixbuf (pixbuf, 1, NULL); + surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, 1, NULL); + + g_object_unref (pixbuf); + return surface; } static cairo_surface_t *
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor