forked from mia/Aegisub
Fixed a crash that would occur if the mouse was left in a captured state after closing and reopening the color picker. Updates #1025
Originally committed to SVN as r3754.
This commit is contained in:
parent
d2834dca45
commit
3c2997e906
1 changed files with 4 additions and 0 deletions
|
@ -801,6 +801,10 @@ DialogColorPicker::~DialogColorPicker()
|
||||||
delete rgb_slider[2];
|
delete rgb_slider[2];
|
||||||
delete hsl_slider;
|
delete hsl_slider;
|
||||||
delete hsv_slider;
|
delete hsv_slider;
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
if (screen_dropper_icon->HasCapture()) screen_dropper_icon->ReleaseMouse();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue