Skip to content

Commit

Permalink
Revert "Deallocate structure used for part properties dialog."
Browse files Browse the repository at this point in the history
This reverts commit 9a1a60e.

Fixes the following double-free bug:

Crash after closing the part properties dialog #228
  • Loading branch information
gtrentalancia committed Mar 25, 2018
1 parent 9ccf40f commit 9d4d3fd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/sheet/part-item.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,6 @@ static void edit_properties_point (PartItem *item)
}
}
gtk_widget_destroy (GTK_WIDGET (prop_dialog->dialog));

g_free (prop_dialog);
}

static void edit_properties (SheetItem *object)
Expand Down Expand Up @@ -657,8 +655,6 @@ static void edit_properties (SheetItem *object)
prop_dialog_response (GTK_WIDGET (prop_dialog->dialog), response, prop_dialog);

gtk_widget_destroy (GTK_WIDGET (prop_dialog->dialog));

g_free (prop_dialog);
}

inline static GooCanvasAnchorType angle_to_anchor (int angle)
Expand Down

0 comments on commit 9d4d3fd

Please sign in to comment.