X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fscrollbar-msw.c;h=8af6692329a2e6b92a578c3934a22bdf1129001b;hp=d3c7c9f0a64deac841066687f311ff9084943629;hb=8b2e8ef2dee7da2f0d4cea712b0fc55902c3cff7;hpb=dbf2768f7b146e97e37a27316f70bb313f1acf15 diff --git a/src/scrollbar-msw.c b/src/scrollbar-msw.c index d3c7c9f..8af6692 100644 --- a/src/scrollbar-msw.c +++ b/src/scrollbar-msw.c @@ -83,9 +83,11 @@ mswindows_create_scrollbar_instance (struct frame *f, int vertical, static void mswindows_free_scrollbar_instance (struct scrollbar_instance *sb) { - DestroyWindow (SCROLLBAR_MSW_HANDLE (sb)); if (sb->scrollbar_data) - xfree (sb->scrollbar_data); + { + DestroyWindow (SCROLLBAR_MSW_HANDLE (sb)); + xfree (sb->scrollbar_data); + } } static void @@ -210,7 +212,7 @@ mswindows_handle_scrollbar_event (HWND hwnd, int code, int pos) /* "0 as the second parameter" refers to the call to real_window above. This comment was taken from Ben's 21.5 code that differs somewhat from this, I don't think the 21.4 code ever had a 0 - there. #### we're still hitting an abort here with 0 as the + there. #### we're still hitting an ABORT here with 0 as the second parameter, although only occasionally. It seems that sometimes we receive events for scrollbars that don't exist anymore. I assume it must happen like this: The user does