Commit 7a324057 authored by Claes Sjofors's avatar Claes Sjofors

Bugfix in xnav destructor

parent c42adf4a
......@@ -122,12 +122,12 @@ XNavGtk::~XNavGtk()
}
menu_tree_free();
for ( int i = 0; i < brow_cnt; i++) {
brow_DeleteSecondaryCtx( brow_stack[i]->ctx);
brow_stack[i]->free_pixmaps();
brow_DeleteSecondaryCtx( brow_stack[i]->ctx);
delete brow_stack[i];
}
brow_DeleteSecondaryCtx( collect_brow->ctx);
collect_brow->free_pixmaps();
brow_DeleteSecondaryCtx( collect_brow->ctx);
delete collect_brow;
delete brow;
if ( op)
......
......@@ -139,13 +139,13 @@ XNavMotif::~XNavMotif()
}
menu_tree_free();
for ( int i = 0; i < brow_cnt; i++) {
brow_DeleteSecondaryCtx( brow_stack[i]->ctx);
brow_stack[i]->free_pixmaps();
brow_DeleteSecondaryCtx( brow_stack[i]->ctx);
delete brow_stack[i];
}
brow_DeleteSecondaryCtx( collect_brow->ctx);
collect_brow->free_pixmaps();
delete collect_brow;
collect_brow->free_pixmaps();
delete brow;
if ( op)
delete op;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment