comctl32/toolbar: Don't free Toolbar control data too early.

This commit is contained in:
Nikolay Sivov 2009-05-24 22:45:57 +04:00 committed by Alexandre Julliard
parent 4db999ebdf
commit 8296075fa7
1 changed files with 1 additions and 1 deletions

View File

@ -5322,8 +5322,8 @@ TOOLBAR_Destroy (TOOLBAR_INFO *infoPtr)
CloseThemeData (GetWindowTheme (infoPtr->hwndSelf));
/* free toolbar info data */
Free (infoPtr);
SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0);
Free (infoPtr);
return 0;
}