diff --git a/0005-mate-dictionary-fix-memory-leak.patch b/0005-mate-dictionary-fix-memory-leak.patch new file mode 100644 index 0000000..9aead57 --- /dev/null +++ b/0005-mate-dictionary-fix-memory-leak.patch @@ -0,0 +1,21 @@ +diff --git a/mate-dictionary/libgdict/gdict-defbox.c b/mate-dictionary/libgdict/gdict-defbox.c +index 49a35e9..8033d24 100644 +--- a/mate-dictionary/libgdict/gdict-defbox.c ++++ b/mate-dictionary/libgdict/gdict-defbox.c +@@ -200,6 +200,8 @@ gdict_defbox_dispose (GObject *gobject) + priv->regular_cursor = NULL; + } + ++ g_clear_pointer (&priv->word, g_free); ++ + G_OBJECT_CLASS (gdict_defbox_parent_class)->dispose (gobject); + } + +@@ -2548,6 +2550,7 @@ gdict_defbox_lookup (GdictDefbox *defbox, + G_CALLBACK (error_cb), + defbox); + ++ g_free (priv->word); + priv->word = g_strdup (word); + g_object_notify (G_OBJECT (defbox), "word"); + diff --git a/mate-utils.spec b/mate-utils.spec index 297e2b7..31dc448 100644 --- a/mate-utils.spec +++ b/mate-utils.spec @@ -15,7 +15,7 @@ Name: mate-utils Version: %{branch}.0 %if 0%{?rel_build} -Release: 2 +Release: 3 %else Release: 0.11%{?git_rel} %endif @@ -35,6 +35,7 @@ Patch1: 0001-feature-mate-system-log-add-X-System-Server-category-51959949.pa Patch2: 0002-Remove-the-system-log-viewer-from-the-start-menu-6a94dfb1.patch Patch3: 0003-change-chinese-translation-be748614.patch Patch4: 0004-fix-control-center-fix-mate-system-log-is-not-displa-9cfd8ed4.patch +Patch5: 0005-mate-dictionary-fix-memory-leak.patch #end kylin BuildRequires: desktop-file-utils @@ -266,6 +267,9 @@ desktop-file-install \ %changelog +* Thu Jul 7 2022 yinyongkang - 1.24.0-3 +- mate-dictionary: fix memory leak + * Thu Jul 07 2022 longcheng - 1.24.0-2 - KYOS-F: draw mask for whole screen except the selection area - KYOS-F: add X-System-Server category for mate-system-log