summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg/src/FreeImage/PluginPCD.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AdvaImg/src/FreeImage/PluginPCD.cpp')
-rw-r--r--plugins/AdvaImg/src/FreeImage/PluginPCD.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/PluginPCD.cpp b/plugins/AdvaImg/src/FreeImage/PluginPCD.cpp
index 87cbe967b2..ff0c5b8679 100644
--- a/plugins/AdvaImg/src/FreeImage/PluginPCD.cpp
+++ b/plugins/AdvaImg/src/FreeImage/PluginPCD.cpp
@@ -155,7 +155,7 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) {
try {
// allocate the dib and write out the header
dib = FreeImage_AllocateHeader(header_only, width, height, bpp, FI_RGBA_RED_MASK, FI_RGBA_GREEN_MASK, FI_RGBA_BLUE_MASK);
- if (!dib) throw FI_MSG_ERROR_DIB_MEMORY;
+ if(!dib) throw FI_MSG_ERROR_DIB_MEMORY;
if(header_only) {
return dib;
@@ -173,7 +173,7 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) {
BYTE *y1 = (BYTE*)malloc(width * sizeof(BYTE));
BYTE *y2 = (BYTE*)malloc(width * sizeof(BYTE));
BYTE *cbcr = (BYTE*)malloc(width * sizeof(BYTE));
- if (!y1 || !y2 || !cbcr) throw FI_MSG_ERROR_MEMORY;
+ if(!y1 || !y2 || !cbcr) throw FI_MSG_ERROR_MEMORY;
BYTE *yl[] = { y1, y2 };