Skip to content

Commit 7af7ac6

Browse files
committed
Fix crash when operating on newly created font RIDs
1 parent 7864ac8 commit 7af7ac6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/text_server_adv/text_server_adv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class TextServerAdvanced : public TextServerExtension {
379379
HashMap<String, bool> script_support_overrides;
380380

381381
PackedByteArray data;
382-
const uint8_t *data_ptr;
382+
const uint8_t *data_ptr = nullptr;
383383
size_t data_size;
384384
int face_index = 0;
385385

modules/text_server_fb/text_server_fb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class TextServerFallback : public TextServerExtension {
306306
HashMap<String, bool> script_support_overrides;
307307

308308
PackedByteArray data;
309-
const uint8_t *data_ptr;
309+
const uint8_t *data_ptr = nullptr;
310310
size_t data_size;
311311
int face_index = 0;
312312

0 commit comments

Comments
 (0)