diff --git a/4ed_api_implementation.cpp b/4ed_api_implementation.cpp index efafd13f..ace07291 100644 --- a/4ed_api_implementation.cpp +++ b/4ed_api_implementation.cpp @@ -3009,7 +3009,9 @@ DOC(Permanently frees the specified object. Not only does this free up the memo if (*type == ManagedObjectType_Markers){ Managed_Buffer_Markers_Header *header = (Managed_Buffer_Markers_Header*)object_ptr; workspace->total_marker_count -= header->std_header.count; - marker_visual_free_chain(&workspace->visual_allocator, header->visual_first, header->visual_last, header->visual_count); + if (header->visual_count > 0ยด){ + marker_visual_free_chain(&workspace->visual_allocator, header->visual_first, header->visual_last, header->visual_count); + } zdll_remove(workspace->buffer_markers_list.first, workspace->buffer_markers_list.last, header); workspace->buffer_markers_list.count -= 1; } diff --git a/todo.txt b/todo.txt index 61c78735..8f1259f0 100644 --- a/todo.txt +++ b/todo.txt @@ -10,13 +10,13 @@ Bugs { + [x] Crash when freeing marker object without visuals [] High CPU usage in listers [] Panel resizing doesn't work [] Notepad like mode clicking to new view doesn't snap the mark [] Notepad like mode replacing text with cursor at end of selection in middle of long file [] Tab when no valid completions in open file lister [] Graphics problem (fonts not rendering) - [] Crash when freeing marker object without visuals [] Texture binding changes too often problem. [] SSHFS segfault on linux Repro Needed