Website Summary Files Commits Branches @commit @diff @stats
path: root / src / UserInterface / VenueConsoleUI.cpp
diff options
context:
space:
mode:
Commit4da4dc9f7658a25eb90647a49514680976d5c382 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 12:13:01 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 12:13:01 +0300
Filesfb407976f369c281cc850243de1f1f6b2be867ae /src/UserInterface/VenueConsoleUI.cpp
FMI-OOP-P1_TicketSystem-4da4dc9f7658a25eb90647a49514680976d5c382.tar
FMI-OOP-P1_TicketSystem-4da4dc9f7658a25eb90647a49514680976d5c382.tar.gz
FMI-OOP-P1_TicketSystem-4da4dc9f7658a25eb90647a49514680976d5c382.zip
Parentbc40623884434af1a16c4d84765fdb8719d74dff (diff)
Autocommit at 07.05.2022 @ 12:13
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);