mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
ce4df5311b
commit
6da14bdb88
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue