Website Summary Files Commits Branches @commit @diff @stats
path: root / src / UserInterface / VenueConsoleUI.cpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 1 deletions
-rw-r--r--src/UserInterface/VenueConsoleUI.cpp3
diff --git a/src/UserInterface/VenueConsoleUI.cpp b/src/UserInterface/VenueConsoleUI.cpp
index cd73dc5..b5d74ae 100644
--- a/src/UserInterface/VenueConsoleUI.cpp
+++ b/src/UserInterface/VenueConsoleUI.cpp
@@ -47,13 +47,14 @@ void command_freeSeats() {
unsigned seatsPerRow = 0;
char* seating = nullptr;
- es->createSeatingString(name, date, &seatsPerRow, seating);
+ es->createSeatingString(name, date, &seatsPerRow, &seating);
if (seating == nullptr) {
handleStatusCode(E_EventDoesNotExist, ticketManagementMenu);
return;
}
table(1, seatsPerRow, seating);
+ delete[] seating;
char tmp;
inputLineBox("[Press enter to continue]", &tmp, 1);