projects
/
platform
/
core
/
accessibility
/
screen-reader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cfee3
)
Fix memory leak issue
58/292158/2
accepted/tizen/unified/20230528.171011
author
Seoyeon Kim
<seoyeon2.kim@samsung.com>
Fri, 28 Apr 2023 05:32:13 +0000
(14:32 +0900)
committer
Seoyeon Kim
<seoyeon2.kim@samsung.com>
Fri, 28 Apr 2023 05:57:20 +0000
(14:57 +0900)
- Add `wav_path` null check
Change-Id: I2ccf5fd7924130afb735dbfce7b1c456889410f6
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/smart_notification.c
patch
|
blob
|
history
diff --git
a/src/smart_notification.c
b/src/smart_notification.c
index da0ad79aa3e936de734a42a0f02e045a1ff4b4d8..e814c4aeb5a3817e232d6c47d0baad284a517a56 100644
(file)
--- a/
src/smart_notification.c
+++ b/
src/smart_notification.c
@@
-54,7
+54,10
@@
static char *_get_sound_path(const char *file_path)
static void _play_sound(const char *file)
{
gchar *wav_path = _get_sound_path(file);
- mm_sound_play_keysound(wav_path, VOLUME_TYPE_MEDIA);
+ if (wav_path)
+ {
+ mm_sound_play_keysound(wav_path, VOLUME_TYPE_MEDIA);
+ }
g_free(wav_path);
}