Bug 1198594 The copy constructor of IMENotification should initialize mMessage before calling Assign() r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 26 Aug 2015 20:01:05 +0900
changeset 288043 b01fa62c7a5216dc2bb47113492efa8f094929cd
parent 288042 fc23dad2b3831e68854d2b499514acd3f9d89a9b
child 288044 11330d73a7a0ef3138f01751dc30894e87a4db22
push id4792
push useryura.zenevich@gmail.com
push dateWed, 26 Aug 2015 20:00:52 +0000
reviewerssmaug
bugs1198594
milestone43.0a1
Bug 1198594 The copy constructor of IMENotification should initialize mMessage before calling Assign() r=smaug
widget/IMEData.h
--- a/widget/IMEData.h
+++ b/widget/IMEData.h
@@ -391,16 +391,17 @@ enum IMEMessage : IMEMessageType
 struct IMENotification final
 {
   IMENotification()
     : mMessage(NOTIFY_IME_OF_NOTHING)
   {
   }
 
   IMENotification(const IMENotification& aOther)
+    : mMessage(NOTIFY_IME_OF_NOTHING)
   {
     Assign(aOther);
   }
 
   ~IMENotification()
   {
     Clear();
   }