react-native/ReactCommon
Valentin Shergin e05acf1930 Fabric: Managing an EventHandler as a unique_pointer
Summary:
I realized that instead of using shared_ptr's type-erasure feature, we can make the EventHandler's destructor virtual and this itself will allow safe deallocation by a pointer to a base class.
We cannot use the same technic for EventTarget thought because having a weak_ptr to this is another feature of shared_ptr that we need.

Reviewed By: mdvacca

Differential Revision: D9775742

fbshipit-source-id: 3c23a163827e8aa9ec731c89ce87051a93afe4ca
2018-09-13 23:02:37 -07:00
..
cxxreact Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
fabric Fabric: Managing an EventHandler as a unique_pointer 2018-09-13 23:02:37 -07:00
jschelpers Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
jsinspector Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
microprofiler Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
privatedata Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
yoga Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00