Correctly close file opened by mkstemp. Fixes #37
This commit is contained in:
@@ -155,7 +155,7 @@ class LatexRenderer(Thread):
|
|||||||
try:
|
try:
|
||||||
tmpdir = mkdtemp(prefix='gajim_tex')
|
tmpdir = mkdtemp(prefix='gajim_tex')
|
||||||
tmpfd, tmppng = mkstemp(prefix='gajim_tex', suffix='.png')
|
tmpfd, tmppng = mkstemp(prefix='gajim_tex', suffix='.png')
|
||||||
tmpfd.close()
|
os.close(tmpfd)
|
||||||
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.3
|
version: 0.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