Revert "[3.0] Fix Gif Loader using uninitialized variable" 62/97662/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:18:08 +0000 (09:18 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:18:13 +0000 (09:18 +0900)
This reverts commit 71fed415ba1456bdbd92e88aaf6046f735f6891e.

Change-Id: I189349ef2630360f525ee01a0e6036ebef3cf2c1

platform-abstractions/tizen/image-loaders/loader-gif.cpp

index 8f8481c..9bb3657 100644 (file)
@@ -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