[geany/geany-plugins] d628a1: debugger: Fix a few memory leaks

Colomban Wendling git-noreply at xxxxx
Sun Nov 15 17:28:22 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 27 Oct 2014 20:50:17 UTC
Commit:      d628a1053d238a4c30e0c4bb733bb881a831b1b4
             https://github.com/geany/geany-plugins/commit/d628a1053d238a4c30e0c4bb733bb881a831b1b4

Log Message:
-----------
debugger: Fix a few memory leaks


Modified Paths:
--------------
    debugger/src/dpaned.c

Modified: debugger/src/dpaned.c
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -351,6 +351,7 @@ void dpaned_init(void)
 			gtk_notebook_set_tab_detachable(GTK_NOTEBOOK(debug_notebook_left), tab, TRUE);
 			gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(debug_notebook_left), tab, TRUE);
 		}
+		g_free(tab_ids);
 
 		gtk_widget_show_all(hpaned);
 		gtk_notebook_set_current_page(GTK_NOTEBOOK(debug_notebook_left), config_get_selected_tab_index());
@@ -406,6 +407,7 @@ void dpaned_set_tabbed(gboolean tabbed)
 				gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(debug_notebook_left), tab, TRUE);
 			}
 		}
+		g_free(tab_ids);
 
 		gtk_notebook_set_current_page(GTK_NOTEBOOK(debug_notebook_left), config_get_selected_tab_index());
 
@@ -431,6 +433,7 @@ void dpaned_set_tabbed(gboolean tabbed)
 			gtk_notebook_set_tab_detachable(GTK_NOTEBOOK(debug_notebook_right), tab, TRUE);
 				gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(debug_notebook_right), tab, TRUE);
 		}
+		g_free(tab_ids);
 
 		gtk_notebook_set_current_page(GTK_NOTEBOOK(debug_notebook_left), config_get_left_selected_tab_index());
 		gtk_notebook_set_current_page(GTK_NOTEBOOK(debug_notebook_right), config_get_right_selected_tab_index());



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list