From e27e80a703b0c2d66be2ca42bac00dc2b0d5f7b7 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 15 Nov 2016 09:18:08 +0900 Subject: [PATCH] Revert "[3.0] Fix Gif Loader using uninitialized variable" This reverts commit 71fed415ba1456bdbd92e88aaf6046f735f6891e. Change-Id: I189349ef2630360f525ee01a0e6036ebef3cf2c1 --- platform-abstractions/tizen/image-loaders/loader-gif.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/platform-abstractions/tizen/image-loaders/loader-gif.cpp b/platform-abstractions/tizen/image-loaders/loader-gif.cpp index 8f8481c..9bb3657 100644 --- a/platform-abstractions/tizen/image-loaders/loader-gif.cpp +++ b/platform-abstractions/tizen/image-loaders/loader-gif.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -259,16 +259,13 @@ bool HandleImageDescriptionRecordType( Bitmap& bitmap, GifFileType* gifInfo, uns bool HandleExtensionRecordType( GifFileType* gifInfo ) { SavedImage image; + image.ExtensionBlocks = NULL; + image.ExtensionBlockCount = 0; GifByteType *extensionByte( NULL ); #ifdef LIBGIF_VERSION_5_1_OR_ABOVE - ExtensionBlock extensionBlocks; - image.ExtensionBlocks = &extensionBlocks; - image.ExtensionBlockCount = 1; int *extensionBlockTypePointer = &image.ExtensionBlocks->Function; #else - image.ExtensionBlocks = NULL; - image.ExtensionBlockCount = 0; int *extensionBlockTypePointer = &image.Function; #endif -- 2.7.4