From dd6c67008dd849aa92b33fb8c1bfcbe987b6c11e Mon Sep 17 00:00:00 2001 From: Vysheng Date: Sat, 19 Oct 2013 15:46:41 +0400 Subject: [PATCH] fixed fail on free geo media type --- structures.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/structures.c b/structures.c index a70a5d1..0502ba7 100644 --- a/structures.c +++ b/structures.c @@ -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); } }