From: Kouhei S. <nu...@co...> - 2013-03-27 15:28:04
|
Kouhei Sutou 2013-03-28 00:27:34 +0900 (Thu, 28 Mar 2013) New Revision: eb8c10aa2d943bcbd921700bfe35924cf398e6da https://github.com/ruby-gnome2/ruby-gnome2/commit/eb8c10aa2d943bcbd921700bfe35924cf398e6da Message: poppler: add missing g_boxed_copy() GitHub: #138 Modified files: poppler/ext/poppler/rbpoppler-color.c poppler/ext/poppler/rbpoppler-rectangle.c Modified: poppler/ext/poppler/rbpoppler-color.c (+1 -1) =================================================================== --- poppler/ext/poppler/rbpoppler-color.c 2013-03-28 00:24:40 +0900 (28d76fe) +++ poppler/ext/poppler/rbpoppler-color.c 2013-03-28 00:27:34 +0900 (1da54c5) @@ -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; } Modified: poppler/ext/poppler/rbpoppler-rectangle.c (+1 -1) =================================================================== --- poppler/ext/poppler/rbpoppler-rectangle.c 2013-03-28 00:24:40 +0900 (2367b7b) +++ poppler/ext/poppler/rbpoppler-rectangle.c 2013-03-28 00:27:34 +0900 (ba23adf) @@ -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; } |