Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Tusooa Zhu
Krita
Commits
e50f27aa
Commit
e50f27aa
authored
Aug 20, 2015
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak by making the single K_STATIC_GLOBAL
parent
7d9bbd4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
libs/pigment/resources/KoHashGeneratorProvider.cpp
libs/pigment/resources/KoHashGeneratorProvider.cpp
+3
-4
No files found.
libs/pigment/resources/KoHashGeneratorProvider.cpp
View file @
e50f27aa
...
...
@@ -22,6 +22,7 @@
#include "KoMD5Generator.h"
#include <kglobal.h>
KoHashGeneratorProvider
*
KoHashGeneratorProvider
::
instance_var
=
0
;
KoHashGeneratorProvider
::
KoHashGeneratorProvider
()
...
...
@@ -52,8 +53,6 @@ void KoHashGeneratorProvider::setGenerator(QString algorithm, KoHashGenerator *g
KoHashGeneratorProvider
*
KoHashGeneratorProvider
::
instance
()
{
if
(
!
instance_var
)
instance_var
=
new
KoHashGeneratorProvider
();
return
instance_var
;
K_GLOBAL_STATIC
(
KoHashGeneratorProvider
,
s_instance
);
return
s_instance
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment