From 6da14bdb884b0b9b483b8c200c6c1b59e219fbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 1 Mar 2017 15:29:42 +0200 Subject: [PATCH] openexrdec: Also catch other exceptions by reference instead of by value It would have to be copied otherwise, and is quite big. CID 1373419 --- ext/openexr/gstopenexrdec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/openexr/gstopenexrdec.cpp b/ext/openexr/gstopenexrdec.cpp index 51afb895e4..a83c35de9b 100644 --- a/ext/openexr/gstopenexrdec.cpp +++ b/ext/openexr/gstopenexrdec.cpp @@ -352,7 +352,7 @@ gst_openexr_dec_handle_frame (GstVideoDecoder * decoder, try { file = new RgbaInputFile (*istr); } - catch (Iex::BaseExc e) { + catch (Iex::BaseExc& e) { delete istr; gst_video_codec_frame_unref (frame); @@ -406,7 +406,7 @@ gst_openexr_dec_handle_frame (GstVideoDecoder * decoder, try { file->setFrameBuffer (fb - dw.min.x - dw.min.y * width, 1, width); file->readPixels (dw.min.y, dw.max.y); - } catch (Iex::BaseExc e) { + } catch (Iex::BaseExc& e) { delete[](fb); delete file; delete istr;