[Evolution-hackers] [Fwd: Weird late relase of CamelContentType* in camel-folder-summary.c]



Hi,

Forwarded as my original reply is gone...

############# snip ##############
The ct valiable (of type CamelContentType*) in the
"camel-folder-summary.c" function "message_info_new_from_header()", is
not released until line 1628, but the last time it is used is in a big
"if" statement at line 1614.

Why can't it be released at line 1618? Is it mysteriously being used
elsewhere in an invisible way??
############# snip ##############

ct can actually not be released early. the returned "charset" will be
garbage if ct is released any earlier.

-- 
  jules

--- Begin Message ---
Hi,

The ct valiable (of type CamelContentType*) in the
"camel-folder-summary.c" function "message_info_new_from_header()", is
not released until line 1628, but the last time it is used is in a big
"if" statement at line 1614.

Why can't it be released at line 1618? Is it mysteriously being used
elsewhere in an invisible way??

Thanks,
  jules


--- End Message ---


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]