Skip to content

Commit

Permalink
fix use-after-free at exit
Browse files Browse the repository at this point in the history
  • Loading branch information
recursive-rat4 committed Jan 10, 2013
1 parent 0f56ea4 commit f327d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,8 @@ void state_free (struct con_state *cstate)

g_free(cstate->last_folder);

pragha_mutex_free(cstate->curr_mobj_mutex);

g_slice_free(struct con_state, cstate);
}

Expand Down
1 change: 0 additions & 1 deletion src/pragha.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ static void common_cleanup(struct con_win *cwin)
g_object_unref (cwin->backend);
gui_free (cwin);
state_free (cwin->cstate);
pragha_mutex_free(cwin->cstate->curr_mobj_mutex);
g_object_unref(G_OBJECT(cwin->preferences));
preferences_free (cwin->cpref);
db_free (cwin->cdbase);
Expand Down

0 comments on commit f327d80

Please sign in to comment.