From: Stefan Csomor Date: Thu, 19 Jan 2012 15:01:47 +0000 (+0000) Subject: guard against invalid color ref X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/052318dfe82a703b853fc80de62018cfc87d8d62 guard against invalid color ref git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index 3a5306d1bb..549b201300 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -165,6 +165,7 @@ CGColorRef wxMacCreateCGColor( const wxColour& col ) } #endif + wxASSERT(retval != NULL); return retval; }