summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-03-17 15:02:34 -0700
committerGloria Wang <gwang@google.com>2011-03-17 15:02:34 -0700
commitcfbe4369b3cd493af3943aae7e0b1590f8e5f20d (patch)
tree368f173d1d3b6d83473fd42a5de5191fcdb752d3 /include
parentbe3c82f25d45ccd1600ec23bab80c2e8a35a0474 (diff)
downloadframeworks_base-cfbe4369b3cd493af3943aae7e0b1590f8e5f20d.zip
frameworks_base-cfbe4369b3cd493af3943aae7e0b1590f8e5f20d.tar.gz
frameworks_base-cfbe4369b3cd493af3943aae7e0b1590f8e5f20d.tar.bz2
Fix for bug 4126103.
mMessage in DrmInfoEvent is a reference to the message string, so the temporary message created in the plugin was going out of scope and being destructed while the message was being sent. Changed DrmInfoEvent's mMessage to be const String8 instead of const String8& Change-Id: I174197ad24f3df997d3bc1f897658cfc53862636
Diffstat (limited to 'include')
-rw-r--r--include/drm/DrmInfoEvent.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/DrmInfoEvent.h b/include/drm/DrmInfoEvent.h
index add33d3..dfca228 100644
--- a/include/drm/DrmInfoEvent.h
+++ b/include/drm/DrmInfoEvent.h
@@ -77,7 +77,7 @@ public:
* @param[in] infoType Type of information
* @param[in] message Message description
*/
- DrmInfoEvent(int uniqueId, int infoType, const String8& message);
+ DrmInfoEvent(int uniqueId, int infoType, const String8 message);
/**
* Destructor for DrmInfoEvent
@@ -104,12 +104,12 @@ public:
*
* @return Message description
*/
- const String8& getMessage() const;
+ const String8 getMessage() const;
private:
int mUniqueId;
int mInfoType;
- const String8& mMessage;
+ const String8 mMessage;
};
};