Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Libraries
mruby
Commits
22469f3b
Commit
22469f3b
authored
Apr 29, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use mrb_free to free random state
parent
b6fc3f83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
mrbgems/mruby-random/src/random.c
mrbgems/mruby-random/src/random.c
+1
-6
No files found.
mrbgems/mruby-random/src/random.c
View file @
22469f3b
...
...
@@ -15,13 +15,8 @@
#define INSTANCE_RAND_SEED_KEY "$mrb_i_rand_seed"
#define MT_STATE_KEY "$mrb_i_mt_state"
static
void
mt_state_free
(
mrb_state
*
mrb
,
void
*
p
)
{
mrb_free
(
mrb
,
p
);
}
static
const
struct
mrb_data_type
mt_state_type
=
{
MT_STATE_KEY
,
m
t_state
_free
,
MT_STATE_KEY
,
m
rb
_free
,
};
static
mt_state
*
mrb_mt_get_context
(
mrb_state
*
mrb
,
mrb_value
self
)
...
...
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