diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-06-21 20:44:07 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-06-21 20:44:07 +0000 |
| commit | 80174b60033b8439eb06256f7ce9a51a26c6f7ed (patch) | |
| tree | 1563f7a436a7f25013f902648e6c3a71bf2abefe /src/widgets | |
| parent | Translations. Finnish translation fix by Ville Pätsi (see Bug #752457) and t... (diff) | |
| download | inkscape-80174b60033b8439eb06256f7ce9a51a26c6f7ed.tar.gz inkscape-80174b60033b8439eb06256f7ce9a51a26c6f7ed.zip | |
cppcheck
(bzr r12382)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/sp-color-icc-selector.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/sp-color-icc-selector.cpp b/src/widgets/sp-color-icc-selector.cpp index 00b00ce38..53e73dd57 100644 --- a/src/widgets/sp-color-icc-selector.cpp +++ b/src/widgets/sp-color-icc-selector.cpp @@ -272,7 +272,8 @@ static void sp_color_icc_selector_class_init(SPColorICCSelectorClass *klass) ColorICCSelector::ColorICCSelector( SPColorSelector* csel ) - : ColorSelector( csel ) + : ColorSelector( csel ), + _impl(NULL) { } @@ -429,7 +430,8 @@ ColorICCSelectorImpl::~ColorICCSelectorImpl() void ColorICCSelector::init() { - _impl = new ColorICCSelectorImpl(this); + if (_impl) delete(_impl); + _impl = new ColorICCSelectorImpl(this); gint row = 0; _impl->_updating = FALSE; |
