OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa25c03
)
delete -> free
author
Marco Nelissen
<marcone@google.com>
Mon, 19 Nov 2012 17:49:18 +0000
(09:49 -0800)
committer
Marco Nelissen
<marcone@google.com>
Mon, 19 Nov 2012 17:49:18 +0000
(09:49 -0800)
Strings duplicated with strdup() should be free()d, not deleted.
Change-Id: I42bb3df9625bb8d35f80b02d15364b94c36496f8
media/libmedia/SoundPool.cpp
patch
|
blob
|
history
diff --git
a/media/libmedia/SoundPool.cpp
b/media/libmedia/SoundPool.cpp
index
204e0ce
..
ee70ef7
100644
(file)
--- a/
media/libmedia/SoundPool.cpp
+++ b/
media/libmedia/SoundPool.cpp
@@
-489,7
+489,7
@@
Sample::~Sample()
::close(mFd);
}
mData.clear();
-
delete mUrl
;
+
free(mUrl)
;
}
status_t Sample::doLoad()