std::vector <std::string>extra_dirs;
} DllPath;
-static DllPath* __dllPath = NULL;
+static DllPath* __dllPath = nullptr;
static std::string __tpa;
// on success, return 0. otherwise return -1.
int initializePathManager(const std::string& runtimeDir, const std::string& tizenFXDir, const std::string& extraDir)
{
-
- __dllPath = (DllPath*)calloc(sizeof(DllPath), 1);
+ __dllPath = new DllPath();
if (!__dllPath) {
fprintf(stderr, "fail to allocate memory for dll path structure\n");
return -1;
void finalizePathManager()
{
if (__dllPath) {
- free(__dllPath);
+ delete __dllPath;
__dllPath = NULL;
}
}