fixing COM-5
authorVolker Birk <vb@pep-project.org>
Sun, 13 Nov 2016 16:19:39 +0100
changeset 21005ce89e74ac6
parent 209 dbc6c02c9755
child 211 3e6efc641a02
fixing COM-5
pEp_utility.cpp
     1.1 --- a/pEp_utility.cpp	Sun Nov 13 11:27:54 2016 +0100
     1.2 +++ b/pEp_utility.cpp	Sun Nov 13 16:19:39 2016 +0100
     1.3 @@ -267,6 +267,10 @@
     1.4  
     1.5          void clear_text_message(TextMessage *msg)
     1.6          {
     1.7 +			assert(msg);
     1.8 +			if (!msg)
     1.9 +				return;
    1.10 +
    1.11              SysFreeString(msg->Id);
    1.12              SysFreeString(msg->ShortMsg);
    1.13              SysFreeString(msg->LongMsg);