From 487f0940377b4fbf9ebae8ab2a53f2f992e60deb Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Thu, 10 Oct 2019 22:05:48 +1100 Subject: Reduce memory leak on editing text, etc. --- src/style-internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/style-internal.cpp') diff --git a/src/style-internal.cpp b/src/style-internal.cpp index 939d63e53..a1b2afd3d 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -1059,7 +1059,7 @@ SPIString::clear() { SPIBase::clear(); g_free( value ); value = nullptr; - if( value_default ) value = strdup( value_default ); + if( value_default ) value = g_strdup( value_default ); } void -- cgit v1.2.3