Highlight source code using GNU Source Highlight
[deliverable/binutils-gdb.git] / gdb / tui / tui-data.c
index 4391f0d1001d4beba83770c949b393fcacd2d6a2..2b95f197fdf482cb3a0b2871e225e4d4a5e07989 100644 (file)
@@ -838,7 +838,7 @@ free_content_elements (tui_win_content content,
     {
       int i;
 
-      if (type == SRC_WIN || type == DISASSEM_WIN)
+      if (type == DISASSEM_WIN)
        {
          /* Free whole source block.  */
          xfree (content[0]->which_element.source.line);
@@ -854,6 +854,9 @@ free_content_elements (tui_win_content content,
                {
                  switch (type)
                    {
+                   case SRC_WIN:
+                     xfree (element->which_element.source.line);
+                     break;
                    case DATA_WIN:
                      xfree (element);
                      break;
This page took 0.024521 seconds and 4 git commands to generate.