Skip to content

Commit

Permalink
koral--#167 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
koral-- committed May 16, 2015
1 parent a4dc65d commit 1966768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ android:
- extra-android-m2repository

before_install:
- wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin
- wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin
- chmod +x android-ndk-r10d-linux-x86_64.bin
- ./android-ndk-r10d-linux-x86_64.bin | egrep -v ^Extracting
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r10d
- ./android-ndk-r10e-linux-x86_64.bin | egrep -v ^Extracting
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r10e
- export PATH=${PATH}:${ANDROID_NDK_HOME}

script:
Expand Down
2 changes: 1 addition & 1 deletion src/main/jni/drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static inline void disposeFrameIfNeeded(argb *bm, GifInfo *info) {
unsigned char nextDisposal = info->controlBlock[info->currentIndex].DisposalMode;

if ((curDisposal == DISPOSE_PREVIOUS || nextDisposal == DISPOSE_PREVIOUS) && info->backupPtr == NULL) {
info->backupPtr = malloc(info->stride * fGif->SHeight * sizeof(argb));
info->backupPtr = calloc(info->stride * fGif->SHeight, sizeof(argb));
if (!info->backupPtr) {
info->gifFilePtr->Error = D_GIF_ERR_NOT_ENOUGH_MEM; //TODO throw OOME
return;
Expand Down

0 comments on commit 1966768

Please sign in to comment.