Skip to content

Commit

Permalink
avoid error on window close/cleanup: check we still have a backing!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@6192 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 27, 2014
1 parent 5ab3fe0 commit 02c7500
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/client/gtk_base/cairo_backing.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ def init(self, w, h):
cr.fill()

def close(self):
if self._backing:
self._backing.finish()
GTKWindowBacking.close(self)
self._backing.finish()

def paint_png(self, img_data, x, y, width, height, rowstride, options, callbacks):
""" must be called from UI thread """
Expand Down

0 comments on commit 02c7500

Please sign in to comment.