correctly close tmppng file
This commit is contained in:
@@ -154,7 +154,8 @@ class LatexRenderer(Thread):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
tmpdir = mkdtemp(prefix='gajim_tex')
|
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:
|
except Exception:
|
||||||
msg = 'Could not create temporary files for Latex plugin'
|
msg = 'Could not create temporary files for Latex plugin'
|
||||||
log.debug(msg)
|
log.debug(msg)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Latex
|
name: Latex
|
||||||
short_name: latex
|
short_name: latex
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
description: render received latex code
|
description: render received latex code
|
||||||
authors: Yves Fischer <yvesf@xapek.org>
|
authors: Yves Fischer <yvesf@xapek.org>
|
||||||
Yann Leboulanger <asterix@lagaule.org>
|
Yann Leboulanger <asterix@lagaule.org>
|
||||||
|
|||||||
Reference in New Issue
Block a user