Mercurial > pidgin
comparison src/protocols/novell/nmconference.c @ 13439:11742521716f
[gaim-migrate @ 15814]
Resolves CID 75:
Event deref_ptr: Directly dereferenced pointer "conference"
75 gaim_debug(GAIM_DEBUG_INFO, "novell",
76 "In release conference %p, refs=%d\n",
77 conference, conference->ref_count);
Event check_after_deref: Pointer "conference" dereferenced before NULL check
78 if (conference != NULL && (--conference->ref_count == 0)) {
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 07 Mar 2006 07:24:50 +0000 |
parents | 6663ad2386d9 |
children |
comparison
equal
deleted
inserted
replaced
13438:068282089843 | 13439:11742521716f |
---|---|
70 void | 70 void |
71 nm_release_conference(NMConference * conference) | 71 nm_release_conference(NMConference * conference) |
72 { | 72 { |
73 GSList *node; | 73 GSList *node; |
74 | 74 |
75 g_return_if_fail(conference != NULL); | |
76 | |
75 gaim_debug(GAIM_DEBUG_INFO, "novell", | 77 gaim_debug(GAIM_DEBUG_INFO, "novell", |
76 "In release conference %p, refs=%d\n", | 78 "In release conference %p, refs=%d\n", |
77 conference, conference->ref_count); | 79 conference, conference->ref_count); |
78 if (conference != NULL && (--conference->ref_count == 0)) { | 80 if (--conference->ref_count == 0) { |
79 | 81 |
80 gaim_debug(GAIM_DEBUG_INFO, "novell", | 82 gaim_debug(GAIM_DEBUG_INFO, "novell", |
81 "Releasing conference %p, total=%d\n", | 83 "Releasing conference %p, total=%d\n", |
82 conference, --conf_count); | 84 conference, --conf_count); |
83 | 85 |