From b900df55ccabfb78870a22a3fb0a9c4bbb1ce21d Mon Sep 17 00:00:00 2001
From: Syping <schiedelrafael@keppe.org>
Date: Thu, 18 Nov 2021 17:42:25 +0100
Subject: [PATCH] Add std:: at some forgotten malloc and free

---
 src/RagePhoto.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/RagePhoto.cpp b/src/RagePhoto.cpp
index 8351ca7..550156f 100644
--- a/src/RagePhoto.cpp
+++ b/src/RagePhoto.cpp
@@ -704,7 +704,7 @@ const std::string RagePhoto::save(uint32_t photoFormat, bool *ok)
             *ok = false;
         return std::string();
     }
-    char *data = static_cast<char*>(malloc(size));
+    char *data = static_cast<char*>(std::malloc(size));
     if (!data) {
         if (ok)
             *ok = false;
@@ -714,7 +714,7 @@ const std::string RagePhoto::save(uint32_t photoFormat, bool *ok)
     if (ok)
         *ok = saved;
     const std::string sdata = std::string(data, size);
-    free(data);
+    std::free(data);
     return sdata;
 }
 
@@ -861,7 +861,7 @@ bool RagePhoto::setPhoto(const char *data, uint32_t size, uint32_t bufferSize)
         }
     }
     else {
-        m_data.photoData = static_cast<char*>(malloc(size));
+        m_data.photoData = static_cast<char*>(std::malloc(size));
         if (!m_data.photoData) {
             m_data.error = static_cast<uint8_t>(Error::PhotoMallocError); // 15
             return false;