correctly close tmppng file

This commit is contained in:
Yann Leboulanger
2012-08-28 13:08:41 +02:00
parent cb926cedf3
commit 4003b1b452
2 changed files with 3 additions and 2 deletions

View File

@@ -154,7 +154,8 @@ class LatexRenderer(Thread):
try:
tmpdir = mkdtemp(prefix='gajim_tex')
tmppng = mkstemp(prefix='gajim_tex', suffix='.png')[1]
tmpfd, tmppng = mkstemp(prefix='gajim_tex', suffix='.png')
tmpfd.close()
except Exception:
msg = 'Could not create temporary files for Latex plugin'
log.debug(msg)