Fix UNIT.CTOR.MANY 30/318530/3 accepted/tizen_unified_x_asan accepted/tizen/unified/20250122.054602 accepted/tizen/unified/x/20250122.065432 accepted/tizen/unified/x/asan/20250211.003409
authorYoungHun Kim <yh8004.kim@samsung.com>
Mon, 20 Jan 2025 04:59:32 +0000 (13:59 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Mon, 20 Jan 2025 06:30:57 +0000 (15:30 +0900)
Change-Id: I7353b257dee27ecce6e82e49c8c72a1f384778a3

include_internal/RMShmCache.h
packaging/resource-manager.spec
src/RMShmCache.cpp

index f8c9a129a48daab3adcf29bbea5cc80255108abd..1412523049e6160655f0d48bc8407b715350878b 100644 (file)
@@ -58,11 +58,11 @@ private:
        bool ready_ {};
        std::mutex init_mutex_;
 
-       shared::segment *shm_segment_;
-       shared::unordered_map<int, shared::string>* players_; // player id, app id
-       shared::unordered_map<int, CShmScaler>* scalers_; // device id, scaler
-       shared::unordered_map<int, CShmResource>* audio_outs_; // device id, audio main out
-       shared::unordered_map<int, bool>* active_state_; // object id, active or not
+       shared::segment *shm_segment_ {};
+       shared::unordered_map<int, shared::string>* players_ {}; // player id, app id
+       shared::unordered_map<int, CShmScaler>* scalers_ {}; // device id, scaler
+       shared::unordered_map<int, CShmResource>* audio_outs_ {}; // device id, audio main out
+       shared::unordered_map<int, bool>* active_state_ {}; // object id, active or not
 };
 
 #endif //__RC_SHM_CACHE_H__
index 5d8229f011060c5733fc1b255d37374f35689f8a..8b4941a83b46f66affd2b6f8e6f9fc75f082df9d 100644 (file)
@@ -1,7 +1,7 @@
 Name:       resource-manager
 Summary:    Resource manager
 Version:    0.1
-Release:    5
+Release:    6
 Group:      Multimedia/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
index ba3621f74c1cb4aa836dbfc59e7a302d1a1471e8..16a8b443f36778ef88a971a882b9b9487d8ea46c 100644 (file)
@@ -35,7 +35,7 @@ RMShmCache *RMShmCache::GetInstance(void)
        return instance_;
 }
 
-RMShmCache::RMShmCache(): ready_(false)
+RMShmCache::RMShmCache()
 {
        if (!Init())
                RM_ERR("Init is failed");