Permalink
Browse files

poppler: add missing g_boxed_copy()

GitHub: #138
  • Loading branch information...
1 parent b8be87f commit eb8c10aa2d943bcbd921700bfe35924cf398e6da @kou kou committed Mar 27, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 poppler/ext/poppler/rbpoppler-color.c
  2. +1 −1 poppler/ext/poppler/rbpoppler-rectangle.c
@@ -51,7 +51,7 @@ rg_initialize(VALUE self, VALUE red, VALUE green, VALUE blue)
color.green = NUM2UINT(green);
color.blue = NUM2UINT(blue);
- G_INITIALIZE(self, &color);
+ G_INITIALIZE(self, g_boxed_copy(POPPLER_TYPE_COLOR, &color));
return Qnil;
}
@@ -35,7 +35,7 @@ rg_initialize(VALUE self, VALUE x1, VALUE y1, VALUE x2, VALUE y2)
rectangle.x2 = NUM2DBL(x2);
rectangle.y2 = NUM2DBL(y2);
- G_INITIALIZE(self, &rectangle);
+ G_INITIALIZE(self, g_boxed_copy(POPPLER_TYPE_RECTANGLE, &rectangle));
return Qnil;
}

0 comments on commit eb8c10a

Please sign in to comment.