fixed fail on free geo media type
This commit is contained in:
parent
6cc1b3d349
commit
dd6c67008d
@ -414,6 +414,7 @@ void free_video (struct video *V) {
|
|||||||
void free_message_media (struct message_media *M) {
|
void free_message_media (struct message_media *M) {
|
||||||
switch (M->type) {
|
switch (M->type) {
|
||||||
case CODE_message_media_empty:
|
case CODE_message_media_empty:
|
||||||
|
case CODE_message_media_geo:
|
||||||
return;
|
return;
|
||||||
case CODE_message_media_photo:
|
case CODE_message_media_photo:
|
||||||
free_photo (&M->photo);
|
free_photo (&M->photo);
|
||||||
@ -430,6 +431,7 @@ void free_message_media (struct message_media *M) {
|
|||||||
free (M->data);
|
free (M->data);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
|
logprintf ("%08x\n", M->type);
|
||||||
assert (0);
|
assert (0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user