Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a76d10d1
Commit
a76d10d1
authored
Oct 10, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Fix some memory leaks.
parent
bda66cc3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
init.c
dlls/wineps.drv/init.c
+1
-0
type42.c
dlls/wineps.drv/type42.c
+4
-3
No files found.
dlls/wineps.drv/init.c
View file @
a76d10d1
...
@@ -629,6 +629,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
...
@@ -629,6 +629,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
value_name
=
NULL
;
value_name
=
NULL
;
}
}
if
(
value_name
)
{
if
(
value_name
)
{
HeapFree
(
PSDRV_Heap
,
0
,
ppdFileName
);
ppdFileName
=
HeapAlloc
(
PSDRV_Heap
,
0
,
needed
);
ppdFileName
=
HeapAlloc
(
PSDRV_Heap
,
0
,
needed
);
RegQueryValueExA
(
hkey
,
value_name
,
0
,
&
ppdType
,
(
LPBYTE
)
ppdFileName
,
&
needed
);
RegQueryValueExA
(
hkey
,
value_name
,
0
,
&
ppdType
,
(
LPBYTE
)
ppdFileName
,
&
needed
);
}
}
...
...
dlls/wineps.drv/type42.c
View file @
a76d10d1
...
@@ -314,9 +314,6 @@ BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
...
@@ -314,9 +314,6 @@ BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
t42
->
glyph_sent_size
*
sizeof
(
*
(
t42
->
glyph_sent
)));
t42
->
glyph_sent_size
*
sizeof
(
*
(
t42
->
glyph_sent
)));
}
}
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
glyph_def
)
+
strlen
(
pdl
->
ps_name
)
+
100
);
if
(
!
get_glyf_pos
(
t42
,
index
,
&
start
,
&
end
))
return
FALSE
;
if
(
!
get_glyf_pos
(
t42
,
index
,
&
start
,
&
end
))
return
FALSE
;
TRACE
(
"start = %x end = %x
\n
"
,
start
,
end
);
TRACE
(
"start = %x end = %x
\n
"
,
start
,
end
);
...
@@ -352,6 +349,10 @@ BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
...
@@ -352,6 +349,10 @@ BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
for
(
i
=
1
;
t42
->
glyf_blocks
[
i
];
i
++
)
for
(
i
=
1
;
t42
->
glyf_blocks
[
i
];
i
++
)
if
(
start
<
t42
->
glyf_blocks
[
i
])
break
;
if
(
start
<
t42
->
glyf_blocks
[
i
])
break
;
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
glyph_def
)
+
strlen
(
pdl
->
ps_name
)
+
100
);
/* we don't have a string for the gdir and glyf tables, but we do have a
/* we don't have a string for the gdir and glyf tables, but we do have a
string for the TT header. So the offset we need is tables - 2 */
string for the TT header. So the offset we need is tables - 2 */
sprintf
(
buf
,
"%d %d
\n
"
,
t42
->
num_of_written_tables
-
2
+
i
,
start
-
t42
->
glyf_blocks
[
i
-
1
]);
sprintf
(
buf
,
"%d %d
\n
"
,
t42
->
num_of_written_tables
-
2
+
i
,
start
-
t42
->
glyf_blocks
[
i
-
1
]);
...
...
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