mirror of
https://github.com/openharmony/notification_notification_cangjie_wrapper.git
synced 2026-07-01 06:41:51 -04:00
!38 merge master into master
fix memory leak Created-by: guorunzhi Commit-by: guorunzhi Merged-by: openharmony_ci Description: fix memory leak See merge request: openharmony/notification_notification_cangjie_wrapper!38
This commit is contained in:
@@ -47,9 +47,7 @@ protected struct CSubscribeInfo {
|
||||
publisherDeviceId = LibC.mallocCString(info.publisherDeviceId)
|
||||
publisherBundleName = LibC.mallocCString(info.publisherBundleName)
|
||||
} catch(e: Exception) {
|
||||
LibC.free(publisherPermission)
|
||||
LibC.free(publisherDeviceId)
|
||||
LibC.free(publisherBundleName)
|
||||
free()
|
||||
throw BusinessException(1500009, "Error obtaining system parameters.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user