summaryrefslogtreecommitdiffstats
path: root/src/sp-guide.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2015-10-21 05:40:23 +0000
committerJazzyNico <nicoduf@yahoo.fr>2015-10-21 05:40:23 +0000
commit1c4eee9dacf11acbe1dc9ec1009f46e453aa8725 (patch)
tree8accc5a1936afb6187589adfd65734169199cae7 /src/sp-guide.cpp
parentExtensions. Restack - fix indentation level (follow-up to rev 14424, bug #149... (diff)
downloadinkscape-1c4eee9dacf11acbe1dc9ec1009f46e453aa8725.tar.gz
inkscape-1c4eee9dacf11acbe1dc9ec1009f46e453aa8725.zip
Fix for bug #1498444 (Guides flicker under the mouse after changing the label of any guide) and bug #1469514 (Crash when renaming a guideline label in a new session).
Fixed bugs: - https://launchpad.net/bugs/1498444 - https://launchpad.net/bugs/1469514 (bzr r14426)
Diffstat (limited to 'src/sp-guide.cpp')
-rw-r--r--src/sp-guide.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index b9c124138..bbdf5f260 100644
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
@@ -103,8 +103,8 @@ void SPGuide::set(unsigned int key, const gchar *value) {
}
break;
case SP_ATTR_INKSCAPE_LABEL:
- if (this->label) g_free(this->label);
-
+ // this->label already freed in sp_guideline_set_label (src/display/guideline.cpp)
+ // see bug #1498444, bug #1469514
if (value) {
this->label = g_strdup(value);
} else {