Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
dd6c6700
Commit
dd6c6700
authored
Oct 19, 2013
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed fail on free geo media type
parent
6cc1b3d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
structures.c
structures.c
+2
-0
No files found.
structures.c
View file @
dd6c6700
...
@@ -414,6 +414,7 @@ void free_video (struct video *V) {
...
@@ -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) {
...
@@ -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
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment