Skip to content

Commit

Permalink
Fix for the usage of memory after freed
Browse files Browse the repository at this point in the history
This is the most naive fix I could imagine for #83
I hope it is rational enough and not breaks nothing
  • Loading branch information
shlyakpavel authored and agaida committed Dec 30, 2018
1 parent a569cd0 commit 0cd0d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moveresize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ void MainDialog::moveresize_setup_tab() {
else if(opp) pos = EDGE_RIGHT;
else pos = EDGE_LEFT;

g_free(s);

ui.fixed_y_popup->setCurrentIndex(pos);
ui.fixed_y_pos->setValue(MAX(atoi(s), 0));

g_free(s);

i = tree_get_int("mouse/screenEdgeWarpTime", 400);

Expand Down

0 comments on commit 0cd0d15

Please sign in to comment.