diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-04-11 14:16:42 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-04-11 17:54:13 +0200 |
commit | 84962c21b41d2e65546486cb73e7f3785487265a (patch) | |
tree | 49cbe7a12e172fedaf84d947988027d2eddd618e /external | |
parent | 10c02f69106a248f3c0514b36ec95895ce98d8d7 (diff) |
epoxy: fix gen_dispatch.py fildescriptor leak
Change-Id: I3f7bd1befffb45b12bc178f9addf1445a6c33921
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113944
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'external')
-rw-r--r-- | external/epoxy/UnpackedTarball_epoxy.mk | 1 | ||||
-rw-r--r-- | external/epoxy/epoxy.pyresource-leak.patch | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/external/epoxy/UnpackedTarball_epoxy.mk b/external/epoxy/UnpackedTarball_epoxy.mk index 8dce1ba9d745..2de800ec1ca0 100644 --- a/external/epoxy/UnpackedTarball_epoxy.mk +++ b/external/epoxy/UnpackedTarball_epoxy.mk @@ -30,6 +30,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,epoxy, \ external/epoxy/epoxy.windows.api.patch \ external/epoxy/epoxy.noegl.by.default.patch \ external/epoxy/clang-cl.patch \ + external/epoxy/epoxy.pyresource-leak.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/epoxy/epoxy.pyresource-leak.patch b/external/epoxy/epoxy.pyresource-leak.patch new file mode 100644 index 000000000000..d9fc684254aa --- /dev/null +++ b/external/epoxy/epoxy.pyresource-leak.patch @@ -0,0 +1,13 @@ +--- src/gen_dispatch.py.orig 2020-09-30 06:33:23.765680489 +0200 ++++ src/gen_dispatch.py 2020-09-30 06:37:07.719152050 +0200 +@@ -182,6 +182,10 @@ + # provided the name of the symbol to be requested. + self.provider_loader = {} + ++ def __del__(self): ++ if self.out_file is not None: ++ close(self.out_file) ++ + def all_text_until_element_name(self, element, element_name): + text = '' + |