- Scrollbars for the console (use View2D functions)
[blender-staging.git] / source / blender / windowmanager / intern / wm_init_exit.c
index 5938677afe7d0cebf812e7f36cbb05c73e0f8d8d..4c9c3059e5b1019101549d61ebaa311126a37fe7 100644 (file)
@@ -104,15 +104,11 @@ static void sound_init_listener(void)
 
 static void wm_init_reports(bContext *C)
 {
-       wmWindowManager *wm= CTX_wm_manager(C);
-       wm->reports= MEM_callocN(sizeof(ReportList), "wmReportList");
-       BKE_reports_init(wm->reports, RPT_STORE);
+       BKE_reports_init(CTX_wm_reports(C), RPT_STORE);
 }
 static void wm_free_reports(bContext *C)
 {
-       wmWindowManager *wm= CTX_wm_manager(C);
-       BKE_reports_clear(wm->reports);
-       MEM_freeN(wm->reports);
+       BKE_reports_clear(CTX_wm_reports(C));
 }