!7 mate-dictionary: fix memory leak
From: @yinyongkang Reviewed-by: @tangjie02 Signed-off-by: @tangjie02
This commit is contained in:
commit
ae3417c466
21
0005-mate-dictionary-fix-memory-leak.patch
Normal file
21
0005-mate-dictionary-fix-memory-leak.patch
Normal file
@ -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");
|
||||
|
||||
@ -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 <yinyongkang@kylinos.cn> - 1.24.0-3
|
||||
- mate-dictionary: fix memory leak
|
||||
|
||||
* Thu Jul 07 2022 longcheng <longcheng@kylinos.com.cn> - 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user