fix more memory problems :)
[dana/dcompmgr.git] / dcompmgr.c
index b9fde3c..c878649 100644 (file)
@@ -98,7 +98,7 @@ event(d_display_t *dpy)
                     sc->window_hide(w);
                 screen_remove_window(sc, w);
             }
-            screen_refresh(w->sc);
+            screen_refresh(sc);
             break;
         }
         case XCB_MAP_NOTIFY: