Skip to content

Commit

Permalink
always free images with an error context
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 15, 2024
1 parent 00a9adb commit eb50717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/x11/server/seamless.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,8 @@ def update_root_overlay(self, window, x: int, y: int, image) -> None:
Gdk.cairo_set_source_pixbuf(cr, pixbuf, wx + x, wy + y)
cr.set_operator(operator)
cr.paint()
image.free()
with xlog:
image.free()

def repaint_root_overlay(self) -> None:
if not self.root_overlay:
Expand Down

0 comments on commit eb50717

Please sign in to comment.