diff options
Diffstat (limited to 'src/sp-stop.cpp')
| -rw-r--r-- | src/sp-stop.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-stop.cpp b/src/sp-stop.cpp index 031c6a3ea..71f937927 100644 --- a/src/sp-stop.cpp +++ b/src/sp-stop.cpp @@ -55,12 +55,13 @@ SPStop* SPStop::getPrevStop() SPColor SPStop::readStopColor( Glib::ustring const &styleStr, guint32 dfl ) { SPColor color(dfl); - SPStyle style; + SPStyle* style = sp_style_new(0); SPIPaint paint; - paint.read( styleStr.c_str(), style ); + paint.read( styleStr.c_str(), *style ); if ( paint.isColor() ) { color = paint.value.color; } + sp_style_unref(style); return color; } |
