openexrdec: Also catch other exceptions by reference instead of by value

It would have to be copied otherwise, and is quite big.

CID 1373419
This commit is contained in:
Sebastian Dröge 2017-03-01 15:29:42 +02:00
parent ce4df5311b
commit 6da14bdb88

View file

@ -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;