summaryrefslogtreecommitdiff
path: root/src/vendor/tinyfiledialogs/tinyfiledialogs.h
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-09-08 16:43:06 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-09-08 16:43:06 -0400
commit08cdf72330276a4b4883fea41c3ada1087800a41 (patch)
treec60f14feee3dd40e5d762a17cb8c76ba446d1ab8 /src/vendor/tinyfiledialogs/tinyfiledialogs.h
parent9d6c681037eb4fb3c6d9eca6b1ff1d01d429614e (diff)
Use move operator for DynArray<T>::Push
The EventBucket struct has a DynArray as a member. Calling ::Push({}) instantiates a new item and thus a new DynArray. When the new `{}` object goes out of scope, the DynArray destructor was being called, invalidating the data pointer. This commit ensures that if the object is cloned or moved, the pointer, which now lives in the outer array, remains valid.
Diffstat (limited to 'src/vendor/tinyfiledialogs/tinyfiledialogs.h')
0 files changed, 0 insertions, 0 deletions