summaryrefslogtreecommitdiffstats
path: root/media/libmedia
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-08-12 09:32:18 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-12 09:32:18 -0700
commit2dac90da3ea5120b52844a6ee38c300301de5756 (patch)
treee1f63e3ee3b057b935a9be9ebb4aaf985688821a /media/libmedia
parent047be32ec88dd04a9aca23fa59773fe2eaccb8f8 (diff)
parentdebd76c4a934c98a88850f0a50a30d3f01394eb7 (diff)
downloadframeworks_av-2dac90da3ea5120b52844a6ee38c300301de5756.zip
frameworks_av-2dac90da3ea5120b52844a6ee38c300301de5756.tar.gz
frameworks_av-2dac90da3ea5120b52844a6ee38c300301de5756.tar.bz2
am 0386d04b: am 581581fe: Merge "Fix all fd leaks in authoring engine" into gingerbread
Merge commit '0386d04b19619b03b6bce830010e11d31d3f8a5c' * commit '0386d04b19619b03b6bce830010e11d31d3f8a5c': Fix all fd leaks in authoring engine
Diffstat (limited to 'media/libmedia')
-rw-r--r--media/libmedia/IMediaRecorder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libmedia/IMediaRecorder.cpp b/media/libmedia/IMediaRecorder.cpp
index 4eb63e8..947ff34 100644
--- a/media/libmedia/IMediaRecorder.cpp
+++ b/media/libmedia/IMediaRecorder.cpp
@@ -23,6 +23,7 @@
#include <camera/ICamera.h>
#include <media/IMediaRecorderClient.h>
#include <media/IMediaRecorder.h>
+#include <unistd.h>
namespace android {
@@ -373,6 +374,7 @@ status_t BnMediaRecorder::onTransact(
int64_t offset = data.readInt64();
int64_t length = data.readInt64();
reply->writeInt32(setOutputFile(fd, offset, length));
+ ::close(fd);
return NO_ERROR;
} break;
case SET_VIDEO_SIZE: {