Apply to use std::nothrow when allocating memory with new operator 27/138627/3
authorchanywa <cbible.kim@samsung.com>
Thu, 13 Jul 2017 04:56:03 +0000 (13:56 +0900)
committerchanywa <cbible.kim@samsung.com>
Mon, 17 Jul 2017 02:48:16 +0000 (11:48 +0900)
Change-Id: I6facebf77c7ff6cde9474df2ec699bb132df6996

13 files changed:
lib/aarch64/libheremaps-engine.so.1
lib/aarch64/libheremaps-engine.so.1.0.6_31 [deleted file]
lib/aarch64/libheremaps-engine.so.1.0.6_32 [new file with mode: 0755]
lib/armv7l/libheremaps-engine.so.1
lib/armv7l/libheremaps-engine.so.1.0.6_31 [deleted file]
lib/armv7l/libheremaps-engine.so.1.0.6_32 [new file with mode: 0755]
lib/i586/libheremaps-engine.so.1
lib/i586/libheremaps-engine.so.1.0.6_31 [deleted file]
lib/i586/libheremaps-engine.so.1.0.6_32 [new file with mode: 0755]
lib/x86_64/libheremaps-engine.so.1
lib/x86_64/libheremaps-engine.so.1.0.6_31 [deleted file]
lib/x86_64/libheremaps-engine.so.1.0.6_32 [new file with mode: 0755]
src/here_api.cpp

index 33d96e9c53ae96428a4097fa859e82de061951e5..5644257f424d61700f7363881cafe437ecfd1b17 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_31
\ No newline at end of file
+libheremaps-engine.so.1.0.6_32
\ No newline at end of file
diff --git a/lib/aarch64/libheremaps-engine.so.1.0.6_31 b/lib/aarch64/libheremaps-engine.so.1.0.6_31
deleted file mode 100755 (executable)
index 4c0fae0..0000000
Binary files a/lib/aarch64/libheremaps-engine.so.1.0.6_31 and /dev/null differ
diff --git a/lib/aarch64/libheremaps-engine.so.1.0.6_32 b/lib/aarch64/libheremaps-engine.so.1.0.6_32
new file mode 100755 (executable)
index 0000000..c4a4de7
Binary files /dev/null and b/lib/aarch64/libheremaps-engine.so.1.0.6_32 differ
index 33d96e9c53ae96428a4097fa859e82de061951e5..5644257f424d61700f7363881cafe437ecfd1b17 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_31
\ No newline at end of file
+libheremaps-engine.so.1.0.6_32
\ No newline at end of file
diff --git a/lib/armv7l/libheremaps-engine.so.1.0.6_31 b/lib/armv7l/libheremaps-engine.so.1.0.6_31
deleted file mode 100755 (executable)
index bfbf8e1..0000000
Binary files a/lib/armv7l/libheremaps-engine.so.1.0.6_31 and /dev/null differ
diff --git a/lib/armv7l/libheremaps-engine.so.1.0.6_32 b/lib/armv7l/libheremaps-engine.so.1.0.6_32
new file mode 100755 (executable)
index 0000000..9765535
Binary files /dev/null and b/lib/armv7l/libheremaps-engine.so.1.0.6_32 differ
index 33d96e9c53ae96428a4097fa859e82de061951e5..5644257f424d61700f7363881cafe437ecfd1b17 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_31
\ No newline at end of file
+libheremaps-engine.so.1.0.6_32
\ No newline at end of file
diff --git a/lib/i586/libheremaps-engine.so.1.0.6_31 b/lib/i586/libheremaps-engine.so.1.0.6_31
deleted file mode 100755 (executable)
index 638b455..0000000
Binary files a/lib/i586/libheremaps-engine.so.1.0.6_31 and /dev/null differ
diff --git a/lib/i586/libheremaps-engine.so.1.0.6_32 b/lib/i586/libheremaps-engine.so.1.0.6_32
new file mode 100755 (executable)
index 0000000..55202c0
Binary files /dev/null and b/lib/i586/libheremaps-engine.so.1.0.6_32 differ
index 33d96e9c53ae96428a4097fa859e82de061951e5..5644257f424d61700f7363881cafe437ecfd1b17 120000 (symlink)
@@ -1 +1 @@
-libheremaps-engine.so.1.0.6_31
\ No newline at end of file
+libheremaps-engine.so.1.0.6_32
\ No newline at end of file
diff --git a/lib/x86_64/libheremaps-engine.so.1.0.6_31 b/lib/x86_64/libheremaps-engine.so.1.0.6_31
deleted file mode 100755 (executable)
index 9d5c4f4..0000000
Binary files a/lib/x86_64/libheremaps-engine.so.1.0.6_31 and /dev/null differ
diff --git a/lib/x86_64/libheremaps-engine.so.1.0.6_32 b/lib/x86_64/libheremaps-engine.so.1.0.6_32
new file mode 100755 (executable)
index 0000000..264491c
Binary files /dev/null and b/lib/x86_64/libheremaps-engine.so.1.0.6_32 differ
index 7cca9fa4b2b254145feba1eb65f882209d7b37b5..c0bfe26fb081ae2a06fd9e7689a333fac2dd3a4d 100644 (file)
@@ -703,7 +703,7 @@ int HerePluginCancelRequest(int nReqId)
 int HerePluginCreateMapView(maps_view_h hView, maps_plugin_map_view_ready_cb pCbFunc)
 {
        HereView *vh = NULL, *ovh = NULL;
-       vh = new HereView();
+       vh = new (std::nothrow) HereView();
        if (!vh) return HERE_ERROR_OUT_OF_MEMORY;
        int error = maps_view_get_maps_plugin_view_handle(hView, (void**)&ovh);
        maps_view_set_maps_plugin_view_handle(hView, vh);