Set alternative content to NULL after free.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 9 Feb 2009 02:01:44 +0000 (00:01 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 9 Feb 2009 02:01:44 +0000 (00:01 -0200)
commit0a6813d9bde8c34cd4f2b27ac1bc46eab2d1a281
tree54df34dd8216fccd051f56e764584c1a4d7b5997
parent3081ea44b6c3eada2d32a2bee82fa7ac75840768
Set alternative content to NULL after free.

When setting the content using a type different from the original (src
content instead of text content, for example), set the old content to
NULL after releasing its memory. Otherwise, we try to free them when
releasing the content object or setting the content again.
atom/content.c