fix for crash freeing console history.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 24 Sep 2013 17:11:55 +0000 (17:11 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 24 Sep 2013 17:11:55 +0000 (17:11 +0000)
source/blender/editors/space_console/console_ops.c

index c10ea96096fd11357b2ca8455de8607a5b092905..289986d7fba0919ac8050018d5a817648906d0e7 100644 (file)
@@ -681,6 +681,7 @@ static int console_clear_exec(bContext *C, wmOperator *op)
        if (history) {
                while (sc->history.first)
                        console_history_free(sc, sc->history.first);
+               console_history_verify(C);
        }
 
        console_textview_update_rect(sc, ar);