summaryrefslogtreecommitdiff
path: root/src/ui/ui_earnings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_earnings.cpp')
-rw-r--r--src/ui/ui_earnings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/ui_earnings.cpp b/src/ui/ui_earnings.cpp
index 1ceabbe..8f08bcb 100644
--- a/src/ui/ui_earnings.cpp
+++ b/src/ui/ui_earnings.cpp
@@ -14,24 +14,24 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdlib.h>
#include "ui.hpp"
#include "imgui.h"
-#include "administration.hpp"
+#include "memops.hpp"
#include "locales.hpp"
+#include "administration.hpp"
income_statement* statement = 0;
void ui::setup_earnings()
{
- statement = (income_statement*)malloc(sizeof(income_statement));
+ statement = (income_statement*)memops::alloc(sizeof(income_statement));
administration::create_income_statement(statement);
}
void ui::destroy_earnings()
{
- free(statement);
+ memops::unalloc(statement);
}
void ui::draw_earnings()