From bc3df925397856d5110552dbc98a7867afb02d11 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Sat, 24 Apr 2010 15:38:09 +0800 Subject: [PATCH] add assert in Object.h --- src/Object.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Object.h b/src/Object.h index 8b1a6c8..588a0da 100644 --- a/src/Object.h +++ b/src/Object.h @@ -10,6 +10,7 @@ class Object { protected: template Object (T *p) : m_p ((GObject *)p) { + g_assert (get () != NULL); } operator GObject * (void) const { -- 2.7.4