Skip to content

Commit

Permalink
GIFTranslator: Remove unneeded BBitmap checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jscipione committed Mar 4, 2014
1 parent 5e4c29a commit 116e78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/add-ons/translators/gif/GIFTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ GetBitmap(BPositionIO* in, BBitmap** out)
header.dataSize = B_BENDIAN_TO_HOST_INT32(header.dataSize);

// dump data from stream into a BBitmap
BBitmap* bitmap = new(std::nothrow) BBitmap(header.bounds, header.colors);
BBitmap* bitmap = new BBitmap(header.bounds, header.colors);
*out = bitmap;
if (bitmap == NULL)
return B_NO_MEMORY;
Expand Down Expand Up @@ -260,7 +260,7 @@ GIFTranslator::DerivedTranslate(BPositionIO* inSource,

if (!isGif) {
// BBitmap to GIF
BBitmap* bitmap = NULL;
BBitmap* bitmap;
err = GetBitmap(inSource, &bitmap);
if (err != B_OK)
return err;
Expand Down

0 comments on commit 116e78d

Please sign in to comment.