diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-03-25 18:15:11 +0000 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-03-25 18:36:52 +0000 |
commit | 0f969b6ced7e9ebcbe4bc4e17867ff32d67f27bb (patch) | |
tree | 9632ffa948332d8636c15537cb19356781a215ec /tikzit/src/gtk/Menu.m | |
parent | 1b83e14b1f5640881deeb03c1d11df5197746b64 (diff) |
Catch some memory leaks
Memory usage on Linux no longer shoots up after running the tikz parser
a handful of times.
Diffstat (limited to 'tikzit/src/gtk/Menu.m')
-rw-r--r-- | tikzit/src/gtk/Menu.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tikzit/src/gtk/Menu.m b/tikzit/src/gtk/Menu.m index 677b48f..0eb8ba8 100644 --- a/tikzit/src/gtk/Menu.m +++ b/tikzit/src/gtk/Menu.m @@ -679,8 +679,10 @@ static void tool_cb (GtkAction *action, id<Tool> tool) { - (void) dealloc { g_free (nodeSelBasedActions); + g_free (edgeSelBasedActions); g_free (selBasedActions); g_object_unref (menubar); + g_object_unref (appActions); g_object_unref (windowActions); [super dealloc]; |