fix random garbage ptr issues

This commit is contained in:
2026-09-05 17:02:58 +02:00
parent 6b5f30b334
commit 32c94e0776
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class PD_API ColorEdit : public Container {
u32* color_ref = nullptr; ///< Color Reference
u32 initial_color; ///< Initial Color
std::string label; ///< Label of the Button
Layout* layout; ///< Layout to open
Layout* layout = nullptr; ///< Layout to open
bool is_shown = false; ///< AHow Layout Editor
};
} // namespace UI7
+3 -3
View File
@@ -155,11 +155,11 @@ class PD_API Container {
/** Container Size*/
fvec2 size;
/** Reference to the Drawlist to Draw to*/
Li::Drawlist* list;
Li::Drawlist* list = nullptr;
/** IO Reference for Renderer and Theme */
UI7::IO* io;
UI7::IO* io = nullptr;
/** Reference to the parent container*/
Container* parent;
Container* parent = nullptr;
/** Object ID (0 if unused)*/
u32 id = 0;
/** Internal Flags */