fixed fail on free geo media type

This commit is contained in:
Vysheng 2013-10-19 15:46:41 +04:00
parent 6cc1b3d349
commit dd6c67008d

View File

@ -414,6 +414,7 @@ void free_video (struct video *V) {
void free_message_media (struct message_media *M) {
switch (M->type) {
case CODE_message_media_empty:
case CODE_message_media_geo:
return;
case CODE_message_media_photo:
free_photo (&M->photo);
@ -430,6 +431,7 @@ void free_message_media (struct message_media *M) {
free (M->data);
return;
default:
logprintf ("%08x\n", M->type);
assert (0);
}
}