Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,151
Issues
1,151
List
Boards
Labels
Service Desk
Milestones
Merge Requests
145
Merge Requests
145
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
GNOME
gtk
Commits
70089168
Commit
70089168
authored
Mar 12, 1999
by
Tor Lillqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for NULL parameter in gdk_font_load. Plug a memory leak in gdkim.c.
parent
0c178e96
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
gdk/win32/gdkfont-win32.c
gdk/win32/gdkfont-win32.c
+2
-0
gdk/win32/gdkfont.c
gdk/win32/gdkfont.c
+2
-0
gdk/win32/gdkim-win32.c
gdk/win32/gdkim-win32.c
+1
-1
gdk/win32/gdkim.c
gdk/win32/gdkim.c
+1
-1
No files found.
gdk/win32/gdkfont-win32.c
View file @
70089168
...
...
@@ -54,6 +54,8 @@ gdk_font_load (const gchar *font_name)
int
nHeight
,
nWidth
,
nEscapement
,
nOrientation
,
fnWeight
;
int
logpixelsy
;
g_return_val_if_fail
(
font_name
!=
NULL
,
NULL
);
private
=
g_new
(
GdkFontPrivate
,
1
);
font
=
(
GdkFont
*
)
private
;
...
...
gdk/win32/gdkfont.c
View file @
70089168
...
...
@@ -54,6 +54,8 @@ gdk_font_load (const gchar *font_name)
int
nHeight
,
nWidth
,
nEscapement
,
nOrientation
,
fnWeight
;
int
logpixelsy
;
g_return_val_if_fail
(
font_name
!=
NULL
,
NULL
);
private
=
g_new
(
GdkFontPrivate
,
1
);
font
=
(
GdkFont
*
)
private
;
...
...
gdk/win32/gdkim-win32.c
View file @
70089168
...
...
@@ -186,7 +186,6 @@ gdk_wcstombs (const GdkWChar *src)
}
mbstr
[
mbsl
]
=
'\0'
;
g_free
(
src_alt
);
return
mbstr
;
}
else
{
...
...
@@ -233,6 +232,7 @@ gdk_mbstowcs (GdkWChar *dest, const gchar *src, gint dest_max)
wcsl
=
dest_max
;
for
(
i
=
0
;
i
<
wcsl
;
i
++
)
dest
[
i
]
=
wcstr
[
i
];
g_free
(
wcstr
);
return
wcsl
;
}
...
...
gdk/win32/gdkim.c
View file @
70089168
...
...
@@ -186,7 +186,6 @@ gdk_wcstombs (const GdkWChar *src)
}
mbstr
[
mbsl
]
=
'\0'
;
g_free
(
src_alt
);
return
mbstr
;
}
else
{
...
...
@@ -233,6 +232,7 @@ gdk_mbstowcs (GdkWChar *dest, const gchar *src, gint dest_max)
wcsl
=
dest_max
;
for
(
i
=
0
;
i
<
wcsl
;
i
++
)
dest
[
i
]
=
wcstr
[
i
];
g_free
(
wcstr
);
return
wcsl
;
}
...
...
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