Fixed crash bug with freeing marker objects

master
Allen Webster 2018-10-09 13:01:48 -07:00
parent 7cea77f65b
commit 0b3ef68f48
2 changed files with 4 additions and 2 deletions

View File

@ -3009,7 +3009,9 @@ DOC(Permanently frees the specified object. Not only does this free up the memo
if (*type == ManagedObjectType_Markers){ if (*type == ManagedObjectType_Markers){
Managed_Buffer_Markers_Header *header = (Managed_Buffer_Markers_Header*)object_ptr; Managed_Buffer_Markers_Header *header = (Managed_Buffer_Markers_Header*)object_ptr;
workspace->total_marker_count -= header->std_header.count; workspace->total_marker_count -= header->std_header.count;
if (header->visual_count > 0´){
marker_visual_free_chain(&workspace->visual_allocator, header->visual_first, header->visual_last, header->visual_count); 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); zdll_remove(workspace->buffer_markers_list.first, workspace->buffer_markers_list.last, header);
workspace->buffer_markers_list.count -= 1; workspace->buffer_markers_list.count -= 1;
} }

View File

@ -10,13 +10,13 @@
Bugs Bugs
{ {
[x] Crash when freeing marker object without visuals
[] High CPU usage in listers [] High CPU usage in listers
[] Panel resizing doesn't work [] Panel resizing doesn't work
[] Notepad like mode clicking to new view doesn't snap the mark [] 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 [] 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 [] Tab when no valid completions in open file lister
[] Graphics problem (fonts not rendering) [] Graphics problem (fonts not rendering)
[] Crash when freeing marker object without visuals
[] Texture binding changes too often problem. [] Texture binding changes too often problem.
[] SSHFS segfault on linux [] SSHFS segfault on linux
Repro Needed Repro Needed