Skip to content

Commit

Permalink
free pixmap to avoid memory leak. fixed issue M7S#147
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhen committed Aug 28, 2020
1 parent fba486e commit 0874367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dockbarx/windowbutton.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ def set_preview_image(self):
geo = xwin.get_geometry()
pixmap = xwin.composite_name_window_pixmap()
image_object = pixmap.get_image(0, 0, geo.width, geo.height, Xlib.X.ZPixmap, 0xffffffff)
pixmap.free()
xwin.composite_unredirect_window(Xlib.ext.composite.RedirectAutomatic)
except:
self.preview.set_from_pixbuf(window.wnck.get_icon())
Expand Down

0 comments on commit 0874367

Please sign in to comment.