/*
* ion/ioncore/frame-draw.c
*
- * Copyright (c) Tuomo Valkonen 1999-2007.
+ * Copyright (c) Tuomo Valkonen 1999-2009.
*
* See the included file LICENSE for details.
*/
void frame_clear_shape(WFrame *frame)
{
- grbrush_set_window_shape(frame->brush, TRUE, 0, NULL);
+ if(frame->brush!=NULL)
+ grbrush_set_window_shape(frame->brush, TRUE, 0, NULL);
}