Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
ac5fe543
Commit
ac5fe543
authored
Mar 14, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless test (one more time).
parent
61abfdaf
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
34 deletions
+17
-34
bindings/python/vlc_instance.c
bindings/python/vlc_instance.c
+1
-2
include/vlc_epg.h
include/vlc_epg.h
+4
-8
include/vlc_vlm.h
include/vlc_vlm.h
+4
-10
libs/loader/ext.c
libs/loader/ext.c
+2
-3
libs/loader/ldt_keeper.c
libs/loader/ldt_keeper.c
+1
-2
libs/loader/pe_image.c
libs/loader/pe_image.c
+2
-4
libs/loader/registry.c
libs/loader/registry.c
+3
-5
No files found.
bindings/python/vlc_instance.c
View file @
ac5fe543
...
@@ -64,8 +64,7 @@ free_args(int i_size, char** ppsz_args)
...
@@ -64,8 +64,7 @@ free_args(int i_size, char** ppsz_args)
int
i_index
;
int
i_index
;
for
(
i_index
=
0
;
i_index
<
i_size
;
i_index
++
)
for
(
i_index
=
0
;
i_index
<
i_size
;
i_index
++
)
if
(
ppsz_args
[
i_index
]
)
free
(
ppsz_args
[
i_index
]
);
free
(
ppsz_args
[
i_index
]);
free
(
ppsz_args
);
free
(
ppsz_args
);
}
}
...
...
include/vlc_epg.h
View file @
ac5fe543
...
@@ -60,16 +60,12 @@ static inline void vlc_epg_Clean( vlc_epg_t *p_epg )
...
@@ -60,16 +60,12 @@ static inline void vlc_epg_Clean( vlc_epg_t *p_epg )
for
(
i
=
0
;
i
<
p_epg
->
i_event
;
i
++
)
for
(
i
=
0
;
i
<
p_epg
->
i_event
;
i
++
)
{
{
vlc_epg_event_t
*
p_evt
=
p_epg
->
pp_event
[
i
];
vlc_epg_event_t
*
p_evt
=
p_epg
->
pp_event
[
i
];
if
(
p_evt
->
psz_name
)
free
(
p_evt
->
psz_name
);
free
(
p_evt
->
psz_name
);
if
(
p_evt
->
psz_short_description
)
free
(
p_evt
->
psz_short_description
);
free
(
p_evt
->
psz_short_description
);
if
(
p_evt
->
psz_description
)
free
(
p_evt
->
psz_description
);
free
(
p_evt
->
psz_description
);
free
(
p_evt
);
free
(
p_evt
);
}
}
TAB_CLEAN
(
p_epg
->
i_event
,
p_epg
->
pp_event
);
TAB_CLEAN
(
p_epg
->
i_event
,
p_epg
->
pp_event
);
if
(
p_epg
->
psz_name
)
free
(
p_epg
->
psz_name
);
free
(
p_epg
->
psz_name
);
}
}
static
inline
void
vlc_epg_AddEvent
(
vlc_epg_t
*
p_epg
,
int64_t
i_start
,
int
i_duration
,
static
inline
void
vlc_epg_AddEvent
(
vlc_epg_t
*
p_epg
,
int64_t
i_start
,
int
i_duration
,
...
...
include/vlc_vlm.h
View file @
ac5fe543
...
@@ -208,7 +208,6 @@ static inline void vlm_media_Copy( vlm_media_t *p_dst, vlm_media_t *p_src )
...
@@ -208,7 +208,6 @@ static inline void vlm_media_Copy( vlm_media_t *p_dst, vlm_media_t *p_src )
static
inline
void
vlm_media_Clean
(
vlm_media_t
*
p_media
)
static
inline
void
vlm_media_Clean
(
vlm_media_t
*
p_media
)
{
{
int
i
;
int
i
;
if
(
p_media
->
psz_name
)
free
(
p_media
->
psz_name
);
free
(
p_media
->
psz_name
);
for
(
i
=
0
;
i
<
p_media
->
i_input
;
i
++
)
for
(
i
=
0
;
i
<
p_media
->
i_input
;
i
++
)
...
@@ -219,13 +218,9 @@ static inline void vlm_media_Clean( vlm_media_t *p_media )
...
@@ -219,13 +218,9 @@ static inline void vlm_media_Clean( vlm_media_t *p_media )
free
(
p_media
->
ppsz_option
[
i
])
;
free
(
p_media
->
ppsz_option
[
i
])
;
TAB_CLEAN
(
p_media
->
i_option
,
p_media
->
ppsz_option
);
TAB_CLEAN
(
p_media
->
i_option
,
p_media
->
ppsz_option
);
if
(
p_media
->
psz_output
)
free
(
p_media
->
psz_output
);
free
(
p_media
->
psz_output
);
if
(
p_media
->
b_vod
)
if
(
p_media
->
b_vod
)
{
if
(
p_media
->
vod
.
psz_mux
)
free
(
p_media
->
vod
.
psz_mux
);
free
(
p_media
->
vod
.
psz_mux
);
}
}
}
static
inline
vlm_media_t
*
vlm_media_New
(
void
)
static
inline
vlm_media_t
*
vlm_media_New
(
void
)
{
{
...
@@ -260,7 +255,6 @@ static inline void vlm_media_instance_Init( vlm_media_instance_t *p_instance )
...
@@ -260,7 +255,6 @@ static inline void vlm_media_instance_Init( vlm_media_instance_t *p_instance )
}
}
static
inline
void
vlm_media_instance_Clean
(
vlm_media_instance_t
*
p_instance
)
static
inline
void
vlm_media_instance_Clean
(
vlm_media_instance_t
*
p_instance
)
{
{
if
(
p_instance
->
psz_name
)
free
(
p_instance
->
psz_name
);
free
(
p_instance
->
psz_name
);
}
}
static
inline
vlm_media_instance_t
*
vlm_media_instance_New
(
void
)
static
inline
vlm_media_instance_t
*
vlm_media_instance_New
(
void
)
...
...
libs/loader/ext.c
View file @
ac5fe543
...
@@ -92,7 +92,7 @@ LPVOID WINAPI HeapAlloc(HANDLE heap, DWORD flags, DWORD size)
...
@@ -92,7 +92,7 @@ LPVOID WINAPI HeapAlloc(HANDLE heap, DWORD flags, DWORD size)
WIN_BOOL
WINAPI
HeapFree
(
HANDLE
heap
,
DWORD
flags
,
LPVOID
mem
)
WIN_BOOL
WINAPI
HeapFree
(
HANDLE
heap
,
DWORD
flags
,
LPVOID
mem
)
{
{
if
(
mem
)
free
(
mem
);
free
(
mem
);
//printf("HeapFree %p\n", mem);
//printf("HeapFree %p\n", mem);
//if (!mem)
//if (!mem)
// abort();
// abort();
...
@@ -437,7 +437,6 @@ WIN_BOOL WINAPI UnmapViewOfFile(LPVOID handle)
...
@@ -437,7 +437,6 @@ WIN_BOOL WINAPI UnmapViewOfFile(LPVOID handle)
result
=
munmap
((
void
*
)
handle
,
p
->
mapping_size
);
result
=
munmap
((
void
*
)
handle
,
p
->
mapping_size
);
if
(
p
->
next
)
p
->
next
->
prev
=
p
->
prev
;
if
(
p
->
next
)
p
->
next
->
prev
=
p
->
prev
;
if
(
p
->
prev
)
p
->
prev
->
next
=
p
->
next
;
if
(
p
->
prev
)
p
->
prev
->
next
=
p
->
next
;
if
(
p
->
name
)
free
(
p
->
name
);
free
(
p
->
name
);
if
(
p
==
fm
)
if
(
p
==
fm
)
fm
=
p
->
prev
;
fm
=
p
->
prev
;
...
...
libs/loader/ldt_keeper.c
View file @
ac5fe543
...
@@ -299,7 +299,6 @@ void Restore_LDT_Keeper(ldt_fs_t* ldt_fs)
...
@@ -299,7 +299,6 @@ void Restore_LDT_Keeper(ldt_fs_t* ldt_fs)
{
{
if
(
ldt_fs
==
NULL
||
ldt_fs
->
fs_seg
==
0
)
if
(
ldt_fs
==
NULL
||
ldt_fs
->
fs_seg
==
0
)
return
;
return
;
if
(
ldt_fs
->
prev_struct
)
free
(
ldt_fs
->
prev_struct
);
free
(
ldt_fs
->
prev_struct
);
munmap
((
char
*
)
ldt_fs
->
fs_seg
,
getpagesize
());
munmap
((
char
*
)
ldt_fs
->
fs_seg
,
getpagesize
());
ldt_fs
->
fs_seg
=
0
;
ldt_fs
->
fs_seg
=
0
;
...
...
libs/loader/pe_image.c
View file @
ac5fe543
...
@@ -888,9 +888,7 @@ void PE_UnloadLibrary(WINE_MODREF *wm)
...
@@ -888,9 +888,7 @@ void PE_UnloadLibrary(WINE_MODREF *wm)
{
{
TRACE
(
" unloading %s
\n
"
,
wm
->
filename
);
TRACE
(
" unloading %s
\n
"
,
wm
->
filename
);
if
(
wm
->
filename
)
free
(
wm
->
filename
);
free
(
wm
->
filename
);
if
(
wm
->
short_filename
)
free
(
wm
->
short_filename
);
free
(
wm
->
short_filename
);
HeapFree
(
GetProcessHeap
(),
0
,
wm
->
deps
);
HeapFree
(
GetProcessHeap
(),
0
,
wm
->
deps
);
VirtualFree
(
(
LPVOID
)
wm
->
module
,
0
,
MEM_RELEASE
);
VirtualFree
(
(
LPVOID
)
wm
->
module
,
0
,
MEM_RELEASE
);
...
...
libs/loader/registry.c
View file @
ac5fe543
...
@@ -179,7 +179,6 @@ void free_registry(void)
...
@@ -179,7 +179,6 @@ void free_registry(void)
while
(
t
)
while
(
t
)
{
{
reg_handle_t
*
f
=
t
;
reg_handle_t
*
f
=
t
;
if
(
t
->
name
)
free
(
t
->
name
);
free
(
t
->
name
);
t
=
t
->
prev
;
t
=
t
->
prev
;
free
(
f
);
free
(
f
);
...
@@ -197,7 +196,7 @@ void free_registry(void)
...
@@ -197,7 +196,7 @@ void free_registry(void)
regs
=
0
;
regs
=
0
;
}
}
if
(
localregpathname
&&
localregpathname
!=
regpathname
)
if
(
localregpathname
!=
regpathname
)
free
(
localregpathname
);
free
(
localregpathname
);
localregpathname
=
0
;
localregpathname
=
0
;
}
}
...
@@ -421,7 +420,6 @@ long __stdcall RegCloseKey(long key)
...
@@ -421,7 +420,6 @@ long __stdcall RegCloseKey(long key)
handle
->
prev
->
next
=
handle
->
next
;
handle
->
prev
->
next
=
handle
->
next
;
if
(
handle
->
next
)
if
(
handle
->
next
)
handle
->
next
->
prev
=
handle
->
prev
;
handle
->
next
->
prev
=
handle
->
prev
;
if
(
handle
->
name
)
free
(
handle
->
name
);
free
(
handle
->
name
);
if
(
handle
==
head
)
if
(
handle
==
head
)
head
=
head
->
prev
;
head
=
head
->
prev
;
...
...
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