commit 7caa850d1f4423ae6dff7256447a94dc9a333c54
Author: Alexander Rogachev <[email protected]>
Date:   Wed Dec 14 13:36:22 2022 +0400

    [st][patches][ligatures]: fix memory leak in 0.9 version.

diff --git 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-20221120-0.9.diff 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-20221120-0.9.diff
index ea1c05a6..ab1e0fa3 100644
--- a/st.suckless.org/patches/ligatures/0.9/st-ligatures-20221120-0.9.diff
+++ b/st.suckless.org/patches/ligatures/0.9/st-ligatures-20221120-0.9.diff
@@ -42,10 +42,10 @@ index 1e306f8..3e13e53 100644
  STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
 diff --git a/hb.c b/hb.c
 new file mode 100644
-index 0000000..59b9200
+index 0000000..bacec05
 --- /dev/null
 +++ b/hb.c
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,107 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
@@ -143,6 +143,7 @@ index 0000000..59b9200
 +      hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, 
&glyph_count);
 +
 +      /** Fill the output. */
++      data->buffer = buffer;
 +      data->glyphs = info;
 +      data->positions = pos;
 +      data->count = glyph_count;
diff --git 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-20221120-0.9.diff 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-20221120-0.9.diff
index b2cced63..83c8f9fe 100644
--- a/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-20221120-0.9.diff
+++ b/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-20221120-0.9.diff
@@ -45,7 +45,7 @@ new file mode 100644
 index 0000000..59b9200
 --- /dev/null
 +++ b/hb.c
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,107 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
@@ -143,6 +143,7 @@ index 0000000..59b9200
 +      hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, 
&glyph_count);
 +
 +      /** Fill the output. */
++      data->buffer = buffer;
 +      data->glyphs = info;
 +      data->positions = pos;
 +      data->count = glyph_count;
diff --git 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-20221120-0.9.diff
 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-20221120-0.9.diff
index fb28b72f..230e177f 100644
--- 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-20221120-0.9.diff
+++ 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-20221120-0.9.diff
@@ -45,7 +45,7 @@ new file mode 100644
 index 0000000..59b9200
 --- /dev/null
 +++ b/hb.c
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,107 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
@@ -143,6 +143,7 @@ index 0000000..59b9200
 +      hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, 
&glyph_count);
 +
 +      /** Fill the output. */
++      data->buffer = buffer;
 +      data->glyphs = info;
 +      data->positions = pos;
 +      data->count = glyph_count;
diff --git 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-ringbuffer-20221120-0.9.diff
 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-ringbuffer-20221120-0.9.diff
index 984635a4..586cbbce 100644
--- 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-ringbuffer-20221120-0.9.diff
+++ 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-alpha-scrollback-ringbuffer-20221120-0.9.diff
@@ -45,7 +45,7 @@ new file mode 100644
 index 0000000..59b9200
 --- /dev/null
 +++ b/hb.c
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,107 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
@@ -143,6 +143,7 @@ index 0000000..59b9200
 +      hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, 
&glyph_count);
 +
 +      /** Fill the output. */
++      data->buffer = buffer;
 +      data->glyphs = info;
 +      data->positions = pos;
 +      data->count = glyph_count;
diff --git 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-boxdraw-20221120-0.9.diff 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-boxdraw-20221120-0.9.diff
index 9a5d8978..fa11b28b 100644
--- 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-boxdraw-20221120-0.9.diff
+++ 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-boxdraw-20221120-0.9.diff
@@ -46,7 +46,7 @@ new file mode 100644
 index 0000000..59b9200
 --- /dev/null
 +++ b/hb.c
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,107 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
@@ -144,6 +144,7 @@ index 0000000..59b9200
 +      hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, 
&glyph_count);
 +
 +      /** Fill the output. */
++      data->buffer = buffer;
 +      data->glyphs = info;
 +      data->positions = pos;
 +      data->count = glyph_count;
diff --git 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-20221120-0.9.diff
 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-20221120-0.9.diff
index 9637792a..9a5686f8 100644
--- 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-20221120-0.9.diff
+++ 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-20221120-0.9.diff
@@ -45,7 +45,7 @@ new file mode 100644
 index 0000000..59b9200
 --- /dev/null
 +++ b/hb.c
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,107 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
@@ -143,6 +143,7 @@ index 0000000..59b9200
 +      hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, 
&glyph_count);
 +
 +      /** Fill the output. */
++      data->buffer = buffer;
 +      data->glyphs = info;
 +      data->positions = pos;
 +      data->count = glyph_count;
diff --git 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-ringbuffer-20221120-0.9.diff
 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-ringbuffer-20221120-0.9.diff
index 48bec7b8..294f511d 100644
--- 
a/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-ringbuffer-20221120-0.9.diff
+++ 
b/st.suckless.org/patches/ligatures/0.9/st-ligatures-scrollback-ringbuffer-20221120-0.9.diff
@@ -45,7 +45,7 @@ new file mode 100644
 index 0000000..59b9200
 --- /dev/null
 +++ b/hb.c
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,107 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
@@ -143,6 +143,7 @@ index 0000000..59b9200
 +      hb_glyph_position_t *pos = hb_buffer_get_glyph_positions(buffer, 
&glyph_count);
 +
 +      /** Fill the output. */
++      data->buffer = buffer;
 +      data->glyphs = info;
 +      data->positions = pos;
 +      data->count = glyph_count;


Reply via email to