Unique_ptr's not getting cleaned up when dragging application window

Hey Ember’s,

I’m seeing something unusual I’m not sure how explain.

My application uses a third party library (BASS) to play audio which uses Callback functions to get fed audio data. As part of this audio retrieval a set of unique_ptr's are created which are intended to be destructed as the scope they’re in, ends.

However, if I drag either of the two windows my Cinder-based application uses, these unique_ptr's do not get cleaned up, despite the fact that the scope they’re in, end. It’s only once I let go of the window, that I can see via the log file that these unique_ptr's destruct.

Has anyone experienced anything similar?

Gazoo