summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-03-01 13:29:42 (GMT)
committerSebastian Dröge <sebastian@centricular.com>2017-03-01 13:29:42 (GMT)
commit6da14bdb884b0b9b483b8c200c6c1b59e219fbb5 (patch)
tree0e520d8809c45c47b6356e240431587b2b0ecc1e
parentce4df5311b1e42038d469327dd6a229a997523c0 (diff)
downloadgst-plugins-bad-6da14bdb884b0b9b483b8c200c6c1b59e219fbb5.tar.gz
gst-plugins-bad-6da14bdb884b0b9b483b8c200c6c1b59e219fbb5.tar.xz
openexrdec: Also catch other exceptions by reference instead of by value
It would have to be copied otherwise, and is quite big. CID 1373419
-rw-r--r--ext/openexr/gstopenexrdec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openexr/gstopenexrdec.cpp b/ext/openexr/gstopenexrdec.cpp
index 51afb89..a83c35d 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;