summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangwoo Ryu <cwryu@src.gnome.org>2002-10-15 03:03:03 +0000
committerChangwoo Ryu <cwryu@src.gnome.org>2002-10-15 03:03:03 +0000
commitbae3bda239b15a4b3712e484233701954dbe30fb (patch)
tree9fe06924bc600b1493762d62e68ab66c3aef6bfc
parent1cef12571f9de59a80dcf3804d90f3090dd24d29 (diff)
downloadpango-bae3bda239b15a4b3712e484233701954dbe30fb.tar.gz
Fixed leaks when the Hangul jamos length >= 6 (#95730).
* modules/hangul/hangul-x.c (hangul_engine_shape): Fixed leaks when the Hangul jamos length >= 6 (#95730).
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-1-105
-rw-r--r--ChangeLog.pre-1-25
-rw-r--r--ChangeLog.pre-1-45
-rw-r--r--ChangeLog.pre-1-65
-rw-r--r--ChangeLog.pre-1-85
-rw-r--r--modules/hangul/hangul-x.c13
7 files changed, 37 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 2407f0f7..db6e1973 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-15 Changwoo Ryu <cwryu@debian.org>
+
+ * modules/hangul/hangul-x.c (hangul_engine_shape): Fixed leaks
+ when the Hangul jamos length >= 6 (#95730).
+
2002-10-14 Sven Neumann <sven@gimp.org>
* modules/arabic/arabic-ft2.c (get_ruleset): unref the PangoOTInfo
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index 2407f0f7..db6e1973 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,8 @@
+2002-10-15 Changwoo Ryu <cwryu@debian.org>
+
+ * modules/hangul/hangul-x.c (hangul_engine_shape): Fixed leaks
+ when the Hangul jamos length >= 6 (#95730).
+
2002-10-14 Sven Neumann <sven@gimp.org>
* modules/arabic/arabic-ft2.c (get_ruleset): unref the PangoOTInfo
diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2
index 2407f0f7..db6e1973 100644
--- a/ChangeLog.pre-1-2
+++ b/ChangeLog.pre-1-2
@@ -1,3 +1,8 @@
+2002-10-15 Changwoo Ryu <cwryu@debian.org>
+
+ * modules/hangul/hangul-x.c (hangul_engine_shape): Fixed leaks
+ when the Hangul jamos length >= 6 (#95730).
+
2002-10-14 Sven Neumann <sven@gimp.org>
* modules/arabic/arabic-ft2.c (get_ruleset): unref the PangoOTInfo
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index 2407f0f7..db6e1973 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,8 @@
+2002-10-15 Changwoo Ryu <cwryu@debian.org>
+
+ * modules/hangul/hangul-x.c (hangul_engine_shape): Fixed leaks
+ when the Hangul jamos length >= 6 (#95730).
+
2002-10-14 Sven Neumann <sven@gimp.org>
* modules/arabic/arabic-ft2.c (get_ruleset): unref the PangoOTInfo
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index 2407f0f7..db6e1973 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,8 @@
+2002-10-15 Changwoo Ryu <cwryu@debian.org>
+
+ * modules/hangul/hangul-x.c (hangul_engine_shape): Fixed leaks
+ when the Hangul jamos length >= 6 (#95730).
+
2002-10-14 Sven Neumann <sven@gimp.org>
* modules/arabic/arabic-ft2.c (get_ruleset): unref the PangoOTInfo
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index 2407f0f7..db6e1973 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,8 @@
+2002-10-15 Changwoo Ryu <cwryu@debian.org>
+
+ * modules/hangul/hangul-x.c (hangul_engine_shape): Fixed leaks
+ when the Hangul jamos length >= 6 (#95730).
+
2002-10-14 Sven Neumann <sven@gimp.org>
* modules/arabic/arabic-ft2.c (get_ruleset): unref the PangoOTInfo
diff --git a/modules/hangul/hangul-x.c b/modules/hangul/hangul-x.c
index b16ee1ac..070547b2 100644
--- a/modules/hangul/hangul-x.c
+++ b/modules/hangul/hangul-x.c
@@ -757,13 +757,14 @@ hangul_engine_shape (PangoFont *font,
}
if (n_jamos == jamos_max)
{
- gunichar2 *new_jamos;
-
jamos_max++;
- new_jamos = g_new (gunichar2, jamos_max);
- memcpy (new_jamos, jamos, n_jamos * sizeof (gunichar2));
-
- jamos = new_jamos;
+ if (jamos == jamos_static)
+ {
+ jamos = g_new(gunichar2, jamos_max);
+ memcpy (jamos, jamos_static, n_jamos*sizeof(gunichar2));
+ }
+ else
+ jamos = g_renew(gunichar2, jamos, jamos_max);
}
jamos[n_jamos++] = wc;
}