From 354e3b4f0fd6fcca9995d611b6f031dfa9068ee7 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Tue, 21 Feb 2012 20:51:35 +0100 Subject: cppcheck: null pointer dereference fix (bzr r11007) --- src/widgets/sp-attribute-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/sp-attribute-widget.cpp') diff --git a/src/widgets/sp-attribute-widget.cpp b/src/widgets/sp-attribute-widget.cpp index 989712b0b..8e3d16da5 100644 --- a/src/widgets/sp-attribute-widget.cpp +++ b/src/widgets/sp-attribute-widget.cpp @@ -99,12 +99,12 @@ void SPAttributeTable::clear(void) for (int i = (ch.size())-1; i >=0 ; i--) { w = ch[i]; - sp_signal_disconnect_by_data (w->gobj(), this); ch.pop_back(); if (w != NULL) { try { + sp_signal_disconnect_by_data (w->gobj(), this); delete w; } catch(...) -- cgit v1.2.3